Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between errors and failures #280

Open
marcphilipp opened this issue Jan 23, 2025 · 2 comments
Open

Differentiate between errors and failures #280

marcphilipp opened this issue Jan 23, 2025 · 2 comments
Milestone

Comments

@marcphilipp
Copy link
Member

Motivation

Some IDEs, build tools, and testing frameworks differentiate between "assertion failures" and other errors. In Java both are represented as exceptions where the former extend AssertionError and the latter use any other exception type.

In the Java extension schema, this can be represented for an exception ("throwable") using an attribute:

<xs:attribute name="assertionError" type="xs:boolean" use="required"/>

However, making this a core concept would allow downstream tools to handle this consistently across frameworks. This could be achieved by introducing an additional ERRORED constant in the core:Status enum.

<xs:simpleType name="Status">
<xs:restriction base="xs:string">
<xs:enumeration value="SUCCESSFUL"/>
<xs:enumeration value="SKIPPED"/>
<xs:enumeration value="ABORTED"/>
<xs:enumeration value="FAILED"/>
</xs:restriction>
</xs:simpleType>

@marcphilipp
Copy link
Member Author

@sebastianbergmann Would that suit your needs in PHPUnit?

@sebastianbergmann
Copy link

Yes, an ERRORED value for the Status enumeration would help us. Thank you!

@marcphilipp marcphilipp added this to the 0.2.0-M3 milestone Jan 23, 2025
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

No branches or pull requests

2 participants