You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been scouring the internet today for a way to run some code whenever a Karma test fails with no luck. If there is a way to do this, could someone help me out? If there's not a way to do that currently, I guess this becomes a feature request.
Specifically, I'm working with Jasmine and I assume I would have to use the public API to start a server in Node. What I'm looking for is something like...
varserver=require('karma').server;server.start({port: 9877},function(exitCode){console.log('Karma has exitted with '+exitCode);process.exit(exitCode);});server.onTestFail(function(tests){console.log('Test information collection follows...');console.log(tests);});
Where the tests object would include which tests failed and any other information the log would normally have about the failed test.
The text was updated successfully, but these errors were encountered:
I've been scouring the internet today for a way to run some code whenever a Karma test fails with no luck. If there is a way to do this, could someone help me out? If there's not a way to do that currently, I guess this becomes a feature request.
Specifically, I'm working with Jasmine and I assume I would have to use the public API to start a server in Node. What I'm looking for is something like...
Where the tests object would include which tests failed and any other information the log would normally have about the failed test.
The text was updated successfully, but these errors were encountered: