Skip to content

Conversation

Cube707
Copy link
Contributor

@Cube707 Cube707 commented Oct 10, 2024

This PR adds the two missing properties is_failure and is_error to the TestCase class. They are implemented identically to the existing is_skipped property.

We are using junitparser to fill a table with all testcases and it feels really inconsistent to have three different ways to check for success (directly from propriety), failure (checking two other proprieties are unset) and errors (isinstance check on results). So this Pr would make it much easier and consistent.


created in cooperation with @jonahRo

@Cube707 Cube707 requested a review from EnricoMi December 29, 2024 17:31
Cube707 and others added 5 commits December 29, 2024 18:32
its functionality is now handled by the class `FinalResult`, so it just leads to confusion between the two.
The single usage of the constant can also be simplified by using its content directly
@EnricoMi
Copy link
Collaborator

EnricoMi commented Jan 13, 2025

Superseded by #145.

@EnricoMi EnricoMi closed this Jan 13, 2025
@Cube707 Cube707 deleted the testcases-statuses branch February 10, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants