karma start后不报结果

原文:https://stackoverflow.com/questions/25199900/karma-test-runner-not-running-any-tests

Under karma.config.js, set either singleRun or autoWatch to true. In your case both of them are set to false, hence karma is not running the tests.
singleRun: If true, it captures browsers, runs tests and exits with 0 exit code (if all tests passed) or 1 exit code (if any test failed).

singleRun: true

autoWatch: Enable or disable watching files and executing the tests whenever one of these files changes. Incase you want to watch your files.

autoWatch: true

你可能感兴趣的:(karma start后不报结果)