maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Boyles (Jira)" <>
Subject [jira] [Commented] (SUREFIRE-1842) Surefire - NPE at end of successful test run
Date Mon, 21 Sep 2020 14:50:00 GMT


Michael Boyles commented on SUREFIRE-1842:

The only thing which can throw is [this instance of RunOrderCalculator|]

This is the [only implementation|]
of the provider, and the return is indeed nullable.

This null check seems spurious. It checks directoryScannerParameters, but doesn't use it for
anything. Seems like it should be checking runOrderParameters. When it was [originally introduced,|]
this check made sense, but [a subsequent change to support parallelizing tests|]
seemed to break it.

As a workaround, the reason directoryScannerParameters is null stems from the fact that [you
are using <suiteXmlFiles>|(],
so maybe you can find an alternative way to configure your tests, while avoiding using that.

> Surefire - NPE at end of successful test run
> --------------------------------------------
>                 Key: SUREFIRE-1842
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19.1, 2.21.0, 2.22.1, 3.0.0-M2, 3.0.0-M1, 3.0.0-M3, 3.0.0-M4
>            Reporter: Jack Leech
>            Priority: Major
>         Attachments: stack_trace.txt, test_profile.xml
> While using surefire to run a mock test pack all tests are passed, followed by an exception
in the surefire plugin (NPE) at the end which causes the run to be marked as a failure.
> I've tried various surefire versions of surefire and other testing libraries involved. 
> I have attached a stack trace of the exception in question and a copy of the test profile

This message was sent by Atlassian Jira

View raw message