jakemcc / test-refresh

Refreshes and reruns clojure.tests in your project.
393 stars 28 forks source link

fine-tuning the number of tests that get re-run #57

Closed jdkealy closed 8 years ago

jdkealy commented 8 years ago

Hi,

I was wondering if fine-tuning the tests that get scheduled to run was on the roadmap. I have been running my test suite using

lein test-refresh :changes-only

And im finding myself have to go to great lengths to avoid including a namespace. For example, I have a queries file I use ubiquitously in all my tests for assertions. I'd like to somehow tell test-refresh to ignore certain tests even though the namespace is included in the test.

Many thanks!

jakemcc commented 8 years ago

Hi @jdkealy,

You could achieve this by using test selectors to ignore namespaces or tests with certain metadata on them. lein-test-refresh supports a subset of test selectors

Leiningen points towards some more documentation about them.

From what you've described I think they would solve your problem.

Glad you're enjoying lein-test-refresh! Let me know if this doesn't help or you have more questions.