Skip to content

regression: tests not detected #1802

Closed
Closed

Description

I'm not sure when it happened but sometime in the last weeks or possibly month https://github.com/jbangdev/jbang no longer gets its tests detected.

easy to reproduce, git clone https://github.com/jbangdev/jbang , open a test class and see that you can't run the tests from the UI anymore.

I could in past.

Any suggestions on how to pinpoint what causes the tests to not be found would be great :)

Activity

  1. github-actions commented on Oct 22, 2025

    @github-actions

    Hi Max Rydahl Andersen (@maxandersen), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Suggestions to pinpoint test-detection issues

    • Open the Output panel (View → Output) and select Java Test to see the test-discovery logs. This often shows why tests aren’t picked up. (#1442)
    • In your VS Code settings, set:
      "java.test.logLevel": "verbose"
      to get detailed discovery output. (#1442)
    • Run Developer: Toggle Developer Tools (F1) and check the console for any errors from the Java Test extension.
    • Use Java: Clean the Java language server workspace (via Command Palette) and reload the window, to rule out stale caches.
    • Verify that JUnit (or your chosen test framework) and test dependencies are on the classpath (check your Gradle build file).

    References with high confidence

    • Update broke the extension (#1442) – describes where to find Java Test logs and how to enable verbose logging.
    Other references with low confidence
    • tests not detected (#4010) – reports a similar regression in test discovery after an update, though without a published solution.

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

  2. maxandersen commented on Oct 22, 2025

    @maxandersen
    Author

    no java test found in output but it did make me retry/reinstall Cursor and Code and in Code the tests showsup, but not in Cursor until vscode shows them. Now i killed vscode and cursor seem to find them ... but lets see how long it will keep finding them :)

    I verified i have the same plugins and versions installed from the Java extension pack - only diff is the AI extension only available on vscode but i assume that is not related.

  3. secf4ult commented on Oct 31, 2025

    @secf4ult

    Had the same issue today, I found that if I downgrade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

  4. qianyiwen2019 commented on Oct 31, 2025

    @qianyiwen2019

    Had the same issue today, I found that if I down grade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

    Thanks, this is the route cause, it saved me time.

  5. Fierygit commented on Oct 31, 2025

    @Fierygit

    Yu Xiao (@secf4ult) Thanks, I wasted so much time because of this bug

  6. secf4ult commented on Oct 31, 2025

    @secf4ult

    Just some additional information, according to redhat-developer/vscode-java#4225 it's already fixed by #1798, but not released for now, you can use the binary the dev provided: redhat-developer/vscode-java#4225 (comment).

  7. nickchrysaf commented on Oct 31, 2025

    @nickchrysaf

    Had the same issue today, I found that if I downgrade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

    Thank you

  8. Raidez commented on Oct 31, 2025

    @Raidez

    Same problem, I downgrade to 1.46.0.
    It's works

  9. 2 remaining items

  10. SuvabrataChowdhury commented on Nov 1, 2025

    @SuvabrataChowdhury

    Had the same issue today, I found that if I downgrade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

    Thanks. Downgrading works for me as well.

  11. AzhadArshad commented on Nov 1, 2025

    @AzhadArshad

    Yu Xiao (@secf4ult) You are an angel 😭, Thank u so much

  12. bevans2000 commented on Nov 1, 2025

    @bevans2000

    Yu Xiao (@secf4ult) Thanks, I've been pulling my hair out trying to work out what was wrong,

  13. Apfelholz commented on Nov 2, 2025

    @Apfelholz

    Yu Xiao (@secf4ult) Thanks, this did save my day.

  14. DwarkeshDeshmukh commented on Nov 2, 2025

    @DwarkeshDeshmukh

    @

    Had the same issue today, I found that if I downgrade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

    Big thanks! The downgrade solved my issue

  15. LorenzoSignorelliSilicon commented on Nov 3, 2025

    @LorenzoSignorelliSilicon

    I confirm this is the solution, lets hope they fix it

    Had the same issue today, I found that if I downgrade Language Support for Java by Red Hat from 1.47.0 to 1.46.0 the problem solved, but according to changelog 1.47.0 only released 9 hours ago, and your issue opened last week, so I don't know if it is relevant to yours.

  16. lollolg commented on Nov 19, 2025

    @lollolg

    Yes same problem here, from version 1.47.0 the tests are not recognised anymore. This already happend few months ago, hopefully they solve it soon. I switched to 1.46.0 and the tests can be run as usual

  17. secf4ult commented on Nov 20, 2025

    @secf4ult

    lollolg latest version 0.43.2 should've fixed it.

    Edit: looks like it breaks again.

  18. lollolg commented on Nov 20, 2025

    @lollolg

    I'm on 1.49.0 and the tests still cannot be seen

  19. wenytang-ms commented on Mar 6, 2026

    @wenytang-ms
    Contributor

    Hi all, I have tested against jbang, and show all the junit cases in the treeview as following picture. can you help verify this issue?

    lollolg Yu Xiao (@secf4ult) @LorenzoSIgnorelliReply DwarkeshDeshmukh

    Image

    extensions

    vscode: 1.11.0
    vscode-java: 1.53.0
    test-runner-for-java: 0.44.2026030208
    gradle-for-java: 3.17.2026022802
    
  20. lollolg commented on Mar 9, 2026

    @lollolg

    wenyt (@wenytang-ms)
    Yes it is working fine with the latest versions thanks for looking into this

  21. wenytang-ms commented on Mar 10, 2026

    @wenytang-ms
    Contributor

    Thanks for validate this issue and I'm going to close this issue. we will ship stable later, please reopen if this issue repro. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions