PyCharm 4.0.0 Web Help

Navigate | Test - Create New Test

Ctrl+Shift+TCtrl+Shift+TCtrl+Shift+TCtrl+Shift+TCtrl+Shift+TCtrl+Shift+TCtrl+Shift+TCtrl+Shift+TShift ⌘ TShift ⌘ TShift ⌘ T


Use this dialog box to generate a test class for a class or method, if such test doesn't yet exist.

Item Description
Target directory Click the browse button browseButton to open the directory chooser dialog box, and select the target directory, where the desired test file will be generated.
Test file name In this text field, specify the name of a file where test class will be generated, or accept the default name.
Test class name In this text field, specify the name of the test class, or accept the default name.
Test method This list shows all methods of a class in question (if the dialog has been invoked from the class declaration), or the name of the only method (if the dialog has been invoked from within this method).

Select the check box next to the method names to include these test methods in the generated test class.

See Also

Procedures:

Web Resources: