You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go to Source not working in Test Resutl window #9454
Hello
After test using junit.jupiter in Test Result window in case of Failure shows class hierarchy on class that cause error (Test Class) if right click on Class
name the Go to Source appear. if click on that it does not go to source class
AppTest is name of class and it does not pass the test and by right clicking on the class name on Test Result window and "Go to Source " will be appear
packageagri.test.demo;
importorg.junit.jupiter.api.Test;
importstaticorg.junit.jupiter.api.Assertions.*;
classAppTest {
@TestvoidappHasAGreeting() {
AppclassUnderTest = newApp();
assertNull(classUnderTest.getGreeting(), "app should have a greeting"
+ "1");
}
}
While looking into this I noticed that the gradle JUnit integration can be improved by applying the lessons from the maven junit integration also to gradle, that is a different task though.
Activity
matthiasblaesing commentedon Jun 20, 2026
Can you please provide a reproducer?
mohsen-Nour commentedon Jun 21, 2026
I create tiny project Using Gradle in Apache Netbeans (151kb)
And is accessible from this link
https://drive.google.com/file/d/1ivT4X5IaOCX8JBQ17HWwyEdsBu2eWQz7/view?usp=sharing
AppTest is name of class and it does not pass the test and by right clicking on the class name on Test Result window and "Go to Source " will be appear
matthiasblaesing commentedon Jun 21, 2026
The core of the problem is a broken string contenation. That should be fixed by #9459.
@mohsen-Nour please check the dev build available for the checks page of the PR (or directly: https://github.com/apache/netbeans/suites/75234703289/artifacts/7778303916). Thank you.
While looking into this I noticed that the gradle JUnit integration can be improved by applying the lessons from the maven junit integration also to gradle, that is a different task though.
Gradle "Go to source" on callstack entries does not work