Is it possible to run a single test using QUnit inside Karma?
问题 Jasmine has iit() and ddescribe , and Mocha has it.only and describe.only , but I can't see any way to get QUnit to focus on running a single test. The QUnit UI allows you to run a single test, but I can't see how to get this to work inside Karma, because it doesn't display the QUnit UI. 回答1: Here is my solution. It works fine for me, but YMMV. Download qunit-karma-setup.js, qunit-karma-launch.js from here Then, in your Gruntfile: config.set({ frameworks: ['qunit'], files: [ 'your-app-files