mercredi 1 juillet 2020

Pytest pass overall if >50% of Selenium tests pass

I am currently doing Selenium testing with Pytest. There will be around 10 tests, however, a user may only have 70-80% of the data available to test (which is fine).

Is there a way to then say, if 7/10 tests have passed, overwrite the default failing message and act as if the pytest test has passed succesfully. Yet still show the failing tests

This will interact with a CI/CD pipeline, and it seems that if even 1 tests fails, that the Jenkins just sees red.

Aucun commentaire:

Enregistrer un commentaire