slagyr / speclj

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

"lein spec" uses a different namespace relative to "lein spec -a" #161

Open brosenan opened 7 years ago

brosenan commented 7 years ago

lein spec and lein spec -a do not agree on the namespace in which tests run. lein spec -a runs tests in the namespace perscribed in the spec file, while lein spec runs them from the user namespace (like a REPL).

To reproduce this problem do this:

> git clone https://github.com/brosenan/speclj-bug.git
> cd speclj-bug
> lein spec
# this will fail...
> lein spec -a
# this will succeed

My configuration:

See also: https://github.com/brosenan/speclj-bug