How to run QUnit tests from command line?

后端 未结 4 1178
悲哀的现实
悲哀的现实 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:01

    QUnit now has its own CLI:

    $ npm install -g qunit
    $ qunit 'tests/*-test.js'
    TAP version 13
    ok 1 Module > Test #1
    ok 2 Module > Test #2
    1..2
    # pass 2
    # skip 0
    # todo 0
    # fail 0
    

    Run qunit --help for more usage information.

提交回复
热议问题