[Commented] (SUREFIRE-1697) Test report xml for a test is incomplete

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Commented] (SUREFIRE-1697) Test report xml for a test is incomplete

Hudson (Jira)

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

Sharad Holani commented on SUREFIRE-1697:
-----------------------------------------

[~tibordigana] - i can't provide a reproducible project unfortunately.
Nor can I comment about other versions.

But what I observed was that this usually happens when there are a lot of logs to copy to the report.

> Test report xml for a test is incomplete
> ----------------------------------------
>
>                 Key: SUREFIRE-1697
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1697
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin, xml generation
>    Affects Versions: 3.0.0-M3
>            Reporter: Sharad Holani
>            Priority: Major
>
> We are running an integration test in jenkins with flaky test plugin and retrying it on failure.
> Somehow, it is unable to copy the console logs in <system-out> section which remains incomplete without a closing tag.
> It is happening for a particular test case only.
> Junit version 4.12
> {code:java}
>  
>   <testcase name="testBasicDiscardAndRestoreListing" classname="integrationtests.restore.ResourceListingIT" time="40.736">
>     <flakyFailure type="java.lang.AssertionError">
>       <stackTrace>java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at integrationtests.restore.ResourceListingIT.testBasicDiscardAndRestoreListing(ResourceListingIT.java:123)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:405)
> at org.apache.maven.surefire.junitcore.pc.InvokerStrategy.schedule(InvokerStrategy.java:54)
> at org.apache.maven.surefire.junitcore.pc.Scheduler.schedule(Scheduler.java:362)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
> at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.junit.runners.Suite.runChild(Suite.java:128)
> at org.junit.runners.Suite.runChild(Suite.java:27)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:405)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> </stackTrace>
>       <system-out><![CDATA[
> {code}
>  



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