Karma is made of two main components: a server
and a runner
.
The first one prepare the test environment and spawn the browsers, but is the second one that starts the tests.
To start the server you have to run karma start
, while for the second one you have to start in a second shell karma run <configuration_file_path>
- try it and see the tests running.
If you want to start it automatically, just change this line in your config file:
singleRun: true // => is was false
At this point Karma will setup the server, run the tests and shutdown when completed.