slagyr / speclj

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

Refactors speclj Leiningen task and speclj.main. #67

Closed mylesmegyesi closed 11 years ago

mylesmegyesi commented 11 years ago

Instead of launching a new JVM to run tests, run the tests in the leiningen JVM. On my machine, this patch decreases the amount of time to run lein spec from 6 secs down to 3 secs for the speclj test suite.

technomancy commented 10 years ago

This is not a good idea; it will not work for many projects. If a project wants to run in Leiningen, they should just set :eval-in :leiningen themselves and it will have the same effect.

slagyr commented 10 years ago

Resolved. The lein spec task will set :eval-in :subprocess by default but users can override this by setting :speclj-eval-in :leiningen. This way they can avoid setting :eval-in in their projects.clj which could have other undesirable effects.