Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to profile a unit test in Netbeans?

How do you profile a unit test in Netbeans 6.9 running on Ubuntu?

My research indicates that you use the "Profile test for ..." menu item. From the main menu you can see it at: Profile : Profile Other : Profile test for ClassName.

In my case the menu is always disabled. What do you do to enable this?

like image 686
user873592 Avatar asked Aug 01 '11 23:08

user873592


People also ask

How do I run a unit test in NetBeans?

The easiest way to run all the unit tests for the project is to choose Run > Test <PROJECT_NAME> from the main menu. If you choose this method, the IDE runs all the test classes in the Test Packages. To run an individual test class, right-click the test class under the Test Packages node and choose Run File.

What is NetBeans Profiler?

NetBeans IDE includes a powerful profiling tool that can provide important information about the runtime behavior of your application. The NetBeans profiling tool easily enables you to monitor thread states, CPU performance, and memory usage of your application from within the IDE, and imposes relatively low overhead.


1 Answers

The Profile Test For File menu will only be enabled when a testable class is selected, either in the project window or opened. It will not be enabled when the test class is selected!

like image 147
user873592 Avatar answered Sep 24 '22 17:09

user873592