jeudi 8 novembre 2018

Get all test fails from Mocha

So, I have about 600 tests made with Mocha and now I need to automatically run all of them and get all errors and success count to send this information to monitoring server.

I can make bash script, which runs tests and writes Mocha log to file, then parse this log file and get success count and fail logs (for example by grep), but this is too dirty solution.

I would prefer run tests programmatically and get from Mocha something like fail messages and success tests array to work around this, but I couldn't find any docs about this.

So, how to solve this problem?

Aucun commentaire:

Enregistrer un commentaire