Commit graph

10 commits

Author SHA1 Message Date
Gary Fredericks
08eaf70781 #1269: Skip tests differently when using :test-selectors
The old method skipped tests by adding a hook to
clojure.test/test-var, the problem being that :each fixtures
associated with the test have already run at that point, which is
unideal.

This change skips test by removing their :test metadata before running
the tests at all, which causes clojure.test to not see it as a test.

We use ns-interns to enumerate the vars, the same way clojure.test
does.
2013-07-31 23:29:19 -05:00
Jim Crossley
e770d5e649 Include namespace metadata in test-selector predicates, fixes #242
More specific metadata wins, e.g. deftest trumps its namespace.

Also tweaked the tests a bit so that actual/expected results are now
shown in the output.
2012-10-02 19:38:35 -04:00
Phil Hagelberg
2f2bd69b4d Fix tests for bootclasspath. 2012-06-14 16:26:22 -07:00
Nelson Morris
cd5cd2c0d9 Update the run task tests for 2.0
The test.helper needed to change the project map for the test projects
because eval-in-project uses get-classpath, which will return the
relative paths for some directories.  This breaks in this case since
the working directory is not the root of the test project.
2011-12-02 21:45:47 -06:00
Clojure
f8831ed80f Support namespace injection in eval-in-project. 2011-05-05 20:18:12 -07:00
Phil Hagelberg
2bda774edc Add :uberjar-exclusions to project.clj. 2010-11-20 12:22:29 -08:00
Matjaz Gregoric
6b6a30a148 Use a platform dependent tmp folder. 2010-11-18 11:09:51 +01:00
Phil Hagelberg
b13efc5cbd Test selectors may be customized in project.clj. 2010-09-24 21:32:12 -07:00
Phil Hagelberg
f72bdff365 Primitive test selectors 2010-09-24 19:22:50 -07:00
Alan Dipert
1a0a69227e compile/compile is a hairy mother, but it behaves. Added another test project 2010-08-24 02:01:39 -04:00