maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <>
Subject [jira] [Commented] (SUREFIRE-1388) NullPointerException caused by DefaultReporterFactory.printTestFailures(
Date Fri, 15 Sep 2017 08:18:00 GMT


Tibor Digana commented on SUREFIRE-1388:

I do not know hacking Kotlin provider but since this line does not throw NPE in default provider
it means it must be a problem in the provider as I can see in your POM.
Attach complete reproducible project in Jira.

{{failure( "  " + testMethodStats.get( 0 ).getStackTraceWriter().smartTrimmedStackTrace()

> NullPointerException caused by DefaultReporterFactory.printTestFailures(
> --------------------------------------------------------------------------------------------------------
>                 Key: SUREFIRE-1388
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19, 2.20
>         Environment: Kotlin Spek
>            Reporter: Ruud Paulissen
>            Assignee: Tibor Digana
>              Labels: DefaultReporterFactory, NullPointerException
>             Fix For: Backlog
>         Attachments: pom kopie.xml, Schermafbeelding 2017-07-11 om 09.59.23.png
> I'm trying to run Kotlin Spek tests (based on JUnit) from Maven. I've followed the guide
on their website, and can run the tests locally perfectly fine.
> When I run the Maven "test" task however, some tests are annotated with "FAILURE" in
the output, with a plain "null" value appearing in the console. Upon running "mvn test -e",
I get the attached stack trace.
> I have attached my maven pom.xml file as well.

This message was sent by Atlassian JIRA

View raw message