You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (JIRA)" <ji...@apache.org> on 2019/07/19 18:41:00 UTC
[jira] [Comment Edited] (MINVOKER-196) Support for JUnit report
style
[ https://issues.apache.org/jira/browse/MINVOKER-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16889100#comment-16889100 ]
Slawomir Jaranowski edited comment on MINVOKER-196 at 7/19/19 6:40 PM:
-----------------------------------------------------------------------
I tried with sonarcloud.io, and we have two issues:
- not time attribute on <testcase...>
{code:java}
Caused by: java.lang.NullPointerException
at java.text.DecimalFormat.parse (DecimalFormat.java:2030)
at java.text.NumberFormat.parse (NumberFormat.java:383)
at org.sonar.api.utils.ParsingUtils.parseNumber (ParsingUtils.java:47)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.getTimeAttributeInMS (SurefireStaxHandler.java:127)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.parseTestResult (SurefireStaxHandler.java:117)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.parseTestCase (SurefireStaxHandler.java:77){code}
- no class for IT test
{code:java}
[DEBUG] 20:28:52.239 Class not found in resource cache : maven.invoker.it.customCA
Caused by: java.lang.NullPointerException
at org.sonar.java.DefaultJavaResourceLocator.findResourceByClassName (DefaultJavaResourceLocator.java:50)
at org.sonar.plugins.surefire.SurefireJavaParser.lambda$getUnitTestResource$4 (SurefireJavaParser.java:188)
{code}
first is simple to correct,
about second issue I ask on sonar community
was (Author: slawekjaranowski):
I tried with sonarcloud.io, and we have to issues:
- not time attribute on <testcase...>
{code:java}
Caused by: java.lang.NullPointerException
at java.text.DecimalFormat.parse (DecimalFormat.java:2030)
at java.text.NumberFormat.parse (NumberFormat.java:383)
at org.sonar.api.utils.ParsingUtils.parseNumber (ParsingUtils.java:47)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.getTimeAttributeInMS (SurefireStaxHandler.java:127)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.parseTestResult (SurefireStaxHandler.java:117)
at org.sonar.plugins.surefire.data.SurefireStaxHandler.parseTestCase (SurefireStaxHandler.java:77){code}
- no class for IT test
{code:java}
[DEBUG] 20:28:52.239 Class not found in resource cache : maven.invoker.it.customCA
Caused by: java.lang.NullPointerException
at org.sonar.java.DefaultJavaResourceLocator.findResourceByClassName (DefaultJavaResourceLocator.java:50)
at org.sonar.plugins.surefire.SurefireJavaParser.lambda$getUnitTestResource$4 (SurefireJavaParser.java:188)
{code}
first is simple to correct,
about second issue I ask on sonar community
> Support for JUnit report style
> ------------------------------
>
> Key: MINVOKER-196
> URL: https://issues.apache.org/jira/browse/MINVOKER-196
> Project: Maven Invoker Plugin
> Issue Type: Improvement
> Reporter: Slawomir Jaranowski
> Assignee: Olivier Lamy (*$^¨%`£)
> Priority: Major
> Fix For: 3.2.1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Please add JUnit report style to tests results.
> JUnit reports can be read by many existing tools and CI systems to show of tests status and history.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)