Skip to content

Go to Source not working in Test Resutl window #9454

Closed

Description

@mohsen-Nour

Apache NetBeans version

Apache NetBeans 30

What happened

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

Language / Project Type / NetBeans Component

Java Multi level Gradle Project

How to reproduce

Image

Did this work correctly in an earlier version?

No / Don't know

Operating System

Ubuntu

JDK

21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bug
    needs:triage
    on Jun 20, 2026
  2. matthiasblaesing commented on Jun 20, 2026

    @matthiasblaesing
    Contributor

    Can you please provide a reproducer?

  3. added
    Java
    on Jun 20, 2026
  4. mohsen-Nour commented on Jun 21, 2026

    @mohsen-Nour
    Author

    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

    package agri.test.demo;
    
    import org.junit.jupiter.api.Test;
    import static org.junit.jupiter.api.Assertions.*;
    
    class AppTest {
        @Test void appHasAGreeting() {
            App classUnderTest = new App();
            assertNull(classUnderTest.getGreeting(), "app should have a greeting"
                    + "1");
        }
    }
  5. matthiasblaesing commented on Jun 21, 2026

    @matthiasblaesing
    Contributor

    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.

  6. added
    Gradle
    and removed
    needs:triage
    on Jun 22, 2026
  7. added a commit that references this issue on Jun 23, 2026
    383e6e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GradleJavakind:bugtests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions