sdedic opened a new pull request #3450:
URL: https://github.com/apache/netbeans/pull/3450
This is a follow-up to #3403 -- I've noticed that the `xmllint --xpath
'//testsuite/testcase[./failure]/@name' $file | cut -f2 -d '='` only selects
the 1st failed tests, in case there are more of them in the testsuite.
During last hunt for a CI-failing test (that did not fail on local at all),
I've also missed stderr/out for the failed suite. And also the actual assert
stacktrace, since not all asserts have String message, the stacktrace can help
to identify the exact failure.
Now the output is as follows:
```
=================== JUnit Report Summary / failed tests ===================
org.netbeans.modules.java.lsp.server.protocol.ServerTest
failed: testCancelProgressHandle
failed: testAnnotationCompletion
org.netbeans.modules.java.lsp.server.UtilsTest
failed: testEncode2JSON
errored: testEscapeScompletionSnippetSpceialChars
====================== JUnit failure details ===============================
Suite: org.netbeans.modules.java.lsp.server.protocol.ServerTest
testCancelProgressHandle FAILED :
junit.framework.AssertionFailedError
at
org.netbeans.modules.java.lsp.server.protocol.ServerTest.testCancelProgressHandle(ServerTest.java:4932)
at
org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
at
org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
at
org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
at java.lang.Thread.run(Thread.java:748)
testAnnotationCompletion FAILED : Test failure.
junit.framework.AssertionFailedError: Test failure.
at
org.netbeans.modules.java.lsp.server.protocol.ServerTest.testAnnotationCompletion(ServerTest.java:4591)
at
org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
at
org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
at
org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
at java.lang.Thread.run(Thread.java:748)
Stderr ----------%<----------%<-------------%<-------------%<---------------
....
------------- End suite
org.netbeans.modules.java.lsp.server.protocol.ServerTest ------------
```
I broke several files so that this PR's checks output will show the effect.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists