I\'m using karma with jasmine and followed online guide by installing using
npm install --save-dev karma
and other necessities
i ran
Simple but sometimes overlooked cause: ensure you don't have syntax or compilation errors.
If running a Karma test for JavaScript via your IDE, you may have a syntax error which doesn't appear when you run your tests. This leads to Karma issuing the message "no tests were found".
I ran it under WebStorm; the error appeared under the "Karma Server" tab, while the "No tests were found" message appeared under "Test Run" (both tabs under "Run" or "Debug" tool window).