jeudi 12 mars 2020

When running a TestCafe test file via a git pre-commit hook, how can I return a boolean value whether any test has failed?

Right now I'm just triggering the tests to run with testcafe chrome general-tests.js. But I need to get back a boolean value whether or not any tests have failed so I can create a condition. If a fail is detected, then exit 1 will stop the commit.

Is there a testcafe command of flag that can be used for this? Or is there a better approach?

Aucun commentaire:

Enregistrer un commentaire