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, pass the overall pytest, but 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.
As suggested, if there isn't enough data for tests. Then don't run them.
I was able to find a database table which only contains the users with the relevant data. Now all tests are passing 100%.
Thanks everyone for the help.
Pytest pass overall if >50% of Selenium tests pass