This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Deletion of tests does not delete corresponding structure under /target/test-classes directory | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Kovalsky <jkovalsky> |
Component: | JUnit | Assignee: | Theofanis Oikonomou <theofanis> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.3.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Maven based project reproducing this problem. |
NetBeans IDE Dev (Build 20130530-e1435134b56e) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 I am sorry but I cannot reproduce following your steps. Although I see the structure of dirs from step 7. Once I do step 10 the TRW updates itself and displays the results for second.*Test class OK, when I will be in Prague next Wednesday (June 5th) I will call you to come to see it for yourself. Maybe a patched module with some additional logging could help diagnose what's wrong with my setup. Product Version: NetBeans IDE 7.3.1 (Build 201305282201) Updates: Updates available Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/7.3.1 Cache directory: /home/cesilko/.cache/netbeans/7.3.1 OK. I tried it once again and it really works fine in trunk. It does not work in 7.3.1 however since I don't consider this to be a 7.3.1 showstopper I am not reopening this bug. I apologize for incorrectly set Version. |
Created attachment 135077 [details] Maven based project reproducing this problem. Product Version: NetBeans IDE 7.3.1 (Build 201305282201) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/7.3.1 Cache directory: /home/cesilko/.cache/netbeans/7.3.1 Description: ============ Deleting tests in a Maven based project via Projects explorer leads to not working actions like "Go to Source", "Run Again" or "Debug". I think it's caused by inconsistency between "src/test" and "target/test-classes" directories. Please see the steps below and attached project for more information. Steps to reproduce: =================== 1. Open the attached UnitTestingExample Maven based project. 2. Right click "Source Packages | first" node and invoke "Tools > Create Tests". 3. Confirm your decision in "Create Tests" dialog by "OK" button. 4. Let "JUnit 4.x" selected in "Select JUnit Version" dialog and push "Select". 5. Right click "UnitTestingExample" project node and invoke "Test" menu action. 6. Multiselect "first" and "java.first" nodes under "Test Packages" and delete them. 7. Please note that corresponding structure still remains under "UnitTestingExample/target/test-classes" directory. 8. Right click "Source Packages | second" node and invoke "Tools > Create Tests". 9. Confirm your decision in "Create Tests" dialog by "OK" button. 10. Repeat step 5. 11. Note that "Test Results" output window displays "first.FirstClassTest" result. 12. Right click "testFirstMethod" node and invoke "Go to Source" from its popup menu but it will not do anything.