slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
458 stars 58 forks source link

Running a single test from the repl #179

Open NoahTheDuke opened 3 months ago

NoahTheDuke commented 3 months ago

With clojure.test, you can run a test (with attached fixtures) by calling the older clojure.test/test-vars or the newer clojure.test/run-test-var. This is especially helpful when I'm iterating on a feature and have both implementation and test in windows and use my vim keybinds to switch between them, with the test results showing in a little pop up window (through Conjure).

With speclj, there doesn't seem to be a way to run a specific test or sequence of tests in such a way, unless I missed it somehow. Is this possible? Can I pass specific test vars or symbols to a function to run them?

Thanks so much.