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:
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.
Assuming it's a Java project:
Create a new folder: right click the project under "Projects" tab, go to "New" --> "Other.." --> "Other" --> "Folder"
Edit project properties: right click on the project, this time select "Properties"
Under "Project Properties" select category "Sources"
Notice the section "Test Package Folders" --> click "Add Folder"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With