Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 59874

Summary: Cannot run in junit tests created in
Product: projects Reporter: olivieryolene <olivieryolene>
Component: Ant FreeformAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE QA Contact: issues <>
Priority: P3    
Version: 4.x   
Target Milestone: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Report:

Description olivieryolene 2005-06-11 10:07:22 UTC
I used to developp plenty of junit tests in Netbeans 3.xx, one for each java 
classes of my project.

After migration in netbeans 4., I am not able to run my junit tests any more.

I migrated my project this way :

   web directory
         my jsps

   source-code directory

        com.mycompany.mypackage.myclassTest   <==== my test case

From this free-form project :
  1/  I select myclassTest
  2/  I try to use <Ctrl-Alt-L> (as in Netbeans 3.) : does not work
  3/  I try to use : Menu Run/Run other/Test file : everything is grey in "Run 
other" submenu.

How can I run my tests again in 4. I have no other means than to run netbeans to run my tests.

Please help. Thanks in advance,
Comment 1 Jesse Glick 2005-06-24 11:08:07 UTC
Currently I think you need to write an Ant target to run the tests, if you are
using a freeform project. Check the online help for details, and use

*** This issue has been marked as a duplicate of 46886 ***
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo