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 198785 - Cannot test individual file without compiling it individually
Summary: Cannot test individual file without compiling it individually
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.0
Hardware: All Mac OS X
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 08:53 UTC by simpatico
Modified: 2011-05-24 22:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simpatico 2011-05-21 08:53:57 UTC
It's this NB6.7 issue:

http://forums.netbeans.org/post-41264.html

Trying to debug or just test a file individually it complains with:

	at sun.misc.Launcher$AppClassLoader.
Test com.mysimpatico.mr.core.DefaultQTypeTest FAILED
debug-test:
Deleting: /var/folders/54/54wUdohaH8eR-mvbJL0l2k+++TI/-Tmp-/TEST-com.mysimpatico.mr.core.DefaultQTypeTest.xml
BUILD SUCCESSFUL (total time: 52 seconds)
Contents/Classes/sunrsasign.jar
WARNING: multiple versions of ant detected in path for junit 
         jar:file:/opt/local/share/java/apache-ant/lib/ant.jar!/org/apache/tools/ant/Project.class
     and jar:file:/Users/simpatico/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar!/org/apache/tools/ant/Project.class
Testsuite: com.mysimpatico.mr.core.DefaultQTypeTest

Doing Milos trick works:

AFAIK this is a persisting bug in the quick runner of tests. You can
workaround that by always using the maven build to execute tests. That;s
done from the project properties dialog, Compile panel. Switch the
Compile On Save combobox to "Disable". "
Comment 1 Jesse Glick 2011-05-24 22:16:42 UTC
I need steps to reproduce the problem from scratch in order to evaluate it.