mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

Suggestion: Add concept of skipped tests #525

Closed TripleG closed 2 years ago

TripleG commented 2 years ago

When a test cannot be execute due to not met preconditions, it is not really correct to mark the test as "failed". It is more appropriate to mark it as "skipped". Example: A test requires registered user. If the user creation(precondition) fails, we cannot proceed with the test and we should be able to mark it as "skipped". Something like $skip("User creation failed. Stopping further execution!")

The session summary could look something like this(forgive me my lack of CSS skill) image

adrianth commented 2 years ago

This is a good idea and a useful feature to have, for sure. We were actually thought about adding it and even prepared for it in the OpenTest design, so it shouldn't be too difficult to implement. I'll let you know when it becomes available.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.