How to run a single test file with Karma/Jasmine?
问题 I'm using Karma and Jasmine for testing my Angular JS code. I managed to run all the tests in my project using Karma, but if I try to run just a single file I'm getting the following error: ReferenceError: describe is not defined . Is it possible to run just a single test file and if yes then how? P.S. I'm using Intellij IDEA. 回答1: Although it's not ideal, you can replace describe (and it ) with fdescribe (and fit ) so only those tests will be executed On the other hand, xdescribe / xit