slagyr / speclj

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

Be OS neutral #98

Closed mike-thompson-day8 closed 10 years ago

mike-thompson-day8 commented 10 years ago

If you wanted to make your code more OS independent, there are 3 tweaks:

  1. In project.clj (and README explanations of it)
:test-commands {"test" ["bin/speclj" "path/to/compiled.js"]}}

becomes (adding phantomjs)

:test-commands {"test" ["phantomjs" "bin/speclj" "path/to/compiled.js"]}}
  1. Also in project.clj (and README explanations of it)
:notify-command ["bin/speclj" "path/to/compiled.js"]}

becomes (adding phantomjs):

:notify-command ["phantomjs" "bin/speclj" "path/to/compiled.js"]}
  1. In the test runner script replace use of /dev/stdout
  fs.write("/dev/stdout", x, "w");

with

   console.log(x)
slagyr commented 10 years ago

Nice catch. The template actually had this done already. The README and project.clj have been updated.