Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to debug unit test based on TestNG when the package is named a certain way #7719

Open
naxostech opened this issue Sep 2, 2024 · 2 comments
Labels
Ant [ci] enable "build tools" tests debugger Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix tests

Comments

@naxostech
Copy link

Apache NetBeans version

Apache NetBeans 22

What happened

When a TestNG unit test is named
com.basic.xml, com.basic.xmltoto but not com.basic.totoxml the test cannot be run in debug mode.
It doesn't find the class.
It's because the package suffix starts with xml.

Language / Project Type / NetBeans Component

Java application project with Ant

How to reproduce

Create a package com.basic.xmltoto
Create a class in it, add a test method (annotated with @test) and run this method in debug mode

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

Java 21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

The problem occurs systematically

Are you willing to submit a pull request?

No

@naxostech naxostech added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Sep 2, 2024
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) tests and removed needs:triage Requires attention from one of the committers labels Sep 2, 2024
@matthiasblaesing
Copy link
Contributor

Please provide a minimal runnable test project.

@mbien mbien added Ant [ci] enable "build tools" tests debugger labels Sep 3, 2024
@mbien mbien changed the title Impossible to run unit test based on TestNG Impossible to debug unit test based on TestNG when the package is named a certain way Sep 3, 2024
@naxostech
Copy link
Author

Hello and thank you for your answer.
Right now we are not able to reproduce the problem on a mininal project.
Keep you posted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ant [ci] enable "build tools" tests debugger Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix tests
Projects
None yet
Development

No branches or pull requests

3 participants