Slimerjs for client testing on OSX

245 views
Skip to first unread message

Jonathon McKitrick

unread,
Apr 14, 2015, 8:17:52 AM4/14/15
to clojur...@googlegroups.com
I used `brew install slimerjs` to install, and I have my env set up pointing to Firefox. I replaced "phantomjs" with "slimerjs" in my project file, and got this error when running client tests:

Compiling ClojureScript.
Compiling ClojureScript.
Running ClojureScript test: client-test
Error during the script execution
[Exception] Error: Permission denied to access property "CoffeeScript" filename:coffee-scripts.js line:8

Stack trace:
0:@coffee-scripts.js:8:177012
@coffee-scripts.js:8:2


Any suggestions?

Sebastian Bensusan

unread,
Apr 14, 2015, 10:06:05 AM4/14/15
to clojur...@googlegroups.com
Hi Jonathon,

Are you using cemerick/clojure.test or cljs.test?

cemerick's run script[1] is compatible with Slimer.js while this one[2] for cljs.test is not.

I'm trying to collect running scripts for cljs.test here: https://github.com/bensu/cljs-test-template

The Slimer.js one is not ready yet (async tests don't work). But I'll fix it soon. I'll update you when I have.

As for your error, can you show us the test-command? Are you running CoffeScript as a transpiler?

[1] https://github.com/cemerick/clojurescript.test/blob/master/resources/cemerick/cljs/test/runner.js

[2] https://gitlab.com/keeds/cljsinit/blob/master/phantom/unit-test.js

jmcki...@gmail.com

unread,
Apr 21, 2015, 6:50:01 AM4/21/15
to clojur...@googlegroups.com
Hi Sebastian,

I'm using cemerick/clojurescript.test 0.3.3.

The test command I use is
 {"client-test" ["phantomjs"
;;"slimerjs"
:runner "resources/es5-shim.js" "resources/public/js/client-test.js"]}

As far as I know, there should be no CoffeeScript anywhere in the system.

--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/4EF-NAzu-kM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.
Message has been deleted

Viktor Eriksson

unread,
Apr 22, 2015, 6:59:54 AM4/22/15
to clojur...@googlegroups.com
I had the same issue, it was due to Slimer not being compliant with the newest Firefox 37, I solved it by unistalling my current version and downloading v 36 from here: https://support.mozilla.org/en-US/kb/install-older-version-of-firefox
Reply all
Reply to author
Forward
0 new messages