BroTru opened a new issue, #6000:
URL: https://github.com/apache/netbeans/issues/6000
### Apache NetBeans version
Apache NetBeans 17
### What happened
When I'm running tests on a whole project - junit 5.8.2 or 5.9.3, gradle
7.6.1 or 8.1.1 with:
test {
useJUnitPlatform()
systemProperties['junit.jupiter.execution.parallel.enabled'] = false
forkEvery = 1
}
then the testu result window does not show results or logs and an exeption
is notified:
java.lang.NullPointerException: Cannot invoke
"org.netbeans.modules.gsf.testrunner.api.TestSuite.getName()" because
"currentSuite" is null
at
org.netbeans.modules.gradle.test.GradleTestProgressListener.suiteFinish(GradleTestProgressListener.java:178)
at
org.netbeans.modules.gradle.test.GradleTestProgressListener.processTestProgress(GradleTestProgressListener.java:122)
at
org.netbeans.modules.gradle.test.GradleTestProgressListener.statusChanged(GradleTestProgressListener.java:83)
at
org.netbeans.modules.gradle.execute.GradleDaemonExecutor$1ProgressLookupListener.lambda$statusChanged$0(GradleDaemonExecutor.java:149)
at
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
When I remove the line with forkEvery =1 - then no exception - everything
works (except that the test fail cause I need this fork).
After that - if I bring back the line forkEvery = 1 it runs OK but only
once. Second and consecutive runs also fail - nothing displayed in the test
result window. I've upgraded from Netbeans 15 - it did not happen on the 15
version
### How to reproduce
_No response_
### Did this work correctly in an earlier version?
Apache NetBeans 15
### Operating System
Ubuntu 20.04.6 LTS
### JDK
Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7-Ubuntu-0ubuntu120.04
Runtime: OpenJDK Runtime Environment 17.0.7+7-Ubuntu-0ubuntu120.04 as the IDE
java, project is built/run on oracle jdk 1.8._291
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Every time.
[messages.log](https://github.com/apache/netbeans/files/11599865/messages.log)
### Are you willing to submit a pull request?
No
--
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