Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add 'Test Packages' folder in Netbeans

Tags:

I've created a new Netbeans project and noticed that unlike my previous project it's mising the 'Test Packages' folder. This might seem like an easy question, but how can I add this folder?

Here is a screenshot of my 'Projects' window:

enter image description here

like image 710
Dr. Greenthumb Avatar asked Aug 15 '11 10:08

Dr. Greenthumb


People also ask

How do I add a test package in Java?

On the Project Explorer view, right-click MySharedControls and select New> Other. In the New dialog, open the Java node, select Source Folder, and click Next. In the Folder name field, enter src-test and click Finish. On the Project Explorer view, right-click the src-test folder and select New > Package.


1 Answers

Assuming it's a Java project:

  1. Create a new folder: right click the project under "Projects" tab, go to "New" --> "Other.." --> "Other" --> "Folder"

  2. Edit project properties: right click on the project, this time select "Properties"

  3. Under "Project Properties" select category "Sources"

  4. Notice the section "Test Package Folders" --> click "Add Folder"

like image 52
Saul Avatar answered Oct 13 '22 17:10

Saul