apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.68k stars 853 forks source link

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

Open naxostech opened 2 months ago

naxostech commented 2 months ago

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

matthiasblaesing commented 2 months ago

Please provide a minimal runnable test project.

naxostech commented 2 months ago

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