I would like to run our karma tests using a pre-commit git hook, but I really need a simple output of whether or not any test(s) failed.
Is there any way to get it to return a boolean or integer only that I can check against with my git hook?
Searched this repo and google but couldn't find anything. Thanks!
If you run karma --single-run (CI mode), it will run all the tests and exit (0 exit code if all tests passed, 1 otherwise).
You can also write your own reporter. See http://karma-runner.github.io/0.10/dev/plugins.html