Skip to content

Trying to change the output type #922

Closed
cbier opened this Issue Feb 12, 2014 · 1 comment

2 participants

@cbier
cbier commented Feb 12, 2014

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!

@vojtajina

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

@vojtajina vojtajina closed this Mar 8, 2014
@vojtajina vojtajina added the support label Mar 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.