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

Unhandled errors in tests reported incorrectly in XML reports #736

Open
shardulc opened this issue Jan 29, 2024 · 0 comments
Open

Unhandled errors in tests reported incorrectly in XML reports #736

shardulc opened this issue Jan 29, 2024 · 0 comments

Comments

@shardulc
Copy link

Expected behavior: When an unhandled error occurs during the execution of a test, it is reported (in the JUnit-style XML reports under target/test-reports/) as an <error>. Although I couldn’t find an authoritative definition or explanation of the XML schema, the following sources all agree that <error> is the correct element in this case:

In addition, reports produced by ScalaCheck also have an <error>.

Observed behavior: The XML report produced by MUnit has a <failure> which is supposed to be for tests that fail an assertion or a check.

Steps to reproduce: In shardulc/munit-scalacheck-error-repro.

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

1 participant