How to run QUnit tests from command line?

后端 未结 4 1177
悲哀的现实
悲哀的现实 2021-02-14 05:22

I recently started working on a Rails app that has a large amount of QUnit tests already in place for testing ember. I have been charged with the task of setting the app with a

4条回答
  •  情深已故
    2021-02-14 06:12

    node-qunit-phantomjs gets the job done easy enough and is standalone, not a Grunt-, Gulp-, whatever-plugin:

    $ npm install -g node-qunit-phantomjs
    
    $ node-qunit-phantomjs tests.html
    Testing tests.html
    Took 8 ms to run 1 tests. 0 passed, 1 failed.
    ...
    $ echo $?
    1
    

提交回复
热议问题