maven-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/SUREFIRE-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17199453#comment-17199453
] 

Michael Boyles commented on SUREFIRE-1842:
------------------------------------------

I'm going to submit a PR to fix that, but it seems like another reason you're seeing this
issue is that you're mixing Junit and TestNG. Are you expecting that?

If you run Maven with debug logging (-X) you should see some line beginning with "Using the
provider <some class>". All the above code I contained within a JUnit provider, but
I can see from your profile that you're including TestNG too.

> Surefire - NPE at end of successful test run
> --------------------------------------------
>
>                 Key: SUREFIRE-1842
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1842
>             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
xml.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message