You can modify the default name of the test class, but some of the navigation in the IDE between classes and test classes might not function if the name of the test class does not contain the name of the class that is tested. Right-click the class in the Projects window and choose Tools > Create Tests (Ctrl+Shift+U) to open the Create Tests dialog box. If no test directory exists in your project or you want to specify a different directory for your test, you can specify a test directory in the project properties dialog. The IDE creates a Test Packages directory by default when you create a project. To create a test, the project must have a test directory for the tests. Section 8.20, "Working with Captured Profiling Results"ĭepending on the version of the unit testing framework you are using, the name of the test class is not required to end with Test. Section 8.19, "Working with Live Profiling Results" Section 8.17, "Analyzing CPU Performance" Section 8.16, "Monitoring an Application" Section 8.15, "Setting a Profiling Point" Section 8.14, "Setting Profiling Filters" Section 8.11, "Profiling a Free-form Project" Section 8.10, "Attaching the Profiler to a Remote Application" Section 8.8, "Selecting a Profiling Task" Section 8.7, "Starting a Profiling Session" Section 8.6, "Configuring Unit Test Settings" Section 8.2, "Testing Java Application Projects with Unit Tests" Section 8.1, "About Testing and Profiling Java Application Projects" This chapter contains the following sections: This chapter describes how to use the tools provided by the IDE to run unit tests and to profile Java applications. 8 Testing and Profiling Java Application Projects
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |