-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Unitest: More Options
Don Jayamanne edited this page Sep 7, 2016
·
3 revisions
For details on manually discovering Unit Tests. go here.
For details on how and where errors are displayed, go here.
- Provided Tests have been discovered, you can run them by selecting the
Run All Testsoption from the quick pick - To get this Quick Pick list, you either:
- Click the
Run TestsStatus Bar item - Select the command
Python: View Test UIfrom the command palette
- Click the
- Or you could simply select command
Python: Run Unit Testsfrom the command palette

- Open the
Python: Test UIby clicking on the Test Status bar or selecting the commandPython: View Test UIfrom the command palette - Next select the option
Run Failed Tests

Select the file in the explorer and select the Run Unit Tests context menu option

- Open the test file in the editor
- Locate the test class (test suite) in the editor
- Click the
Testcode lens display just above the test class (test suite)

- Open the
Python: Test UIby clicking on the Test Status bar or selecting the commandPython: View Test UIfrom the command palette - Type into the textbox to find the test function/method that needs to be tested
- Once found, select it and press the
return/enterkey

- Open the test file in the editor
- Locate the test function/method in the editor
- Click the
Testcode lens display just above the test function/method

- The total number of tests that have passed, failed, skipped and error'ed will be displayed in the status bar
- This same information will also be displayed in the
Python Test Logoutput panel - And also in the
Quick Pick List
