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.

Bug 167138

Summary: debug test file fails in junit-debug.xml line 105 unless "Debug test" action is dirty
Product: java Reporter: gregjohnson <gregjohnson>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description gregjohnson 2009-06-16 02:59:37 UTC
Effectively, Debugging a JUnit test for a maven project in 6.7 RC2 is unworkable

"Debug Test File" fails for a maven project running junit4 in junit-debug.xml line 105:

    <target name="-debug-test-class" depends="-prepare-execution" unless="methodname">
        <junit-debug-template/>
    </target>

To reproduce:
* setup maven project
* setup junit test
* Debug->Debug Test File - should work
* Debug->Debug Test File - fails
* Project->Properties->Actions->Debug test - dirty the field, eg prefix targets with "clean", save
* Debug->Debug Test File - should work
* Debug->Debuf Test File - fails
Comment 1 Marian Mirilovic 2009-06-22 11:30:34 UTC
reassign to maven for evaluation
Comment 2 Milos Kleint 2009-06-22 12:33:14 UTC
the problem is in the JavaRunner implementation that is implemented by the ant scripts.
Comment 3 Rastislav Komara 2009-07-14 16:01:20 UTC
Can't replicate. Please provide more information. Marking as incomplete.
Comment 4 Jan Lahoda 2009-08-20 10:02:23 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 5 Peter Pis 2009-09-18 09:55:17 UTC
Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add requested
information and reopen issue. Thanks in advance.