HACKING: Commands to run a single test method, class or module

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Joseph Nuthalapati 2018-01-30 10:50:39 +05:30
parent 9dae13ada5
commit 344b1b8366
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -97,12 +97,27 @@ However, for some reason, you wish setup manually, the following tips will help:
## Running Tests
To run tests:
To run all the tests:
```
```bash
$ python3 setup.py test
```
To run a specific test function, test class or test module, use the `-s` option with the fully qualified name.
**Examples:**
```bash
# Run tests of a test module
$ python3 setup.py test -s plinth.tests.test_actions
# Run tests of one class in test module
$ python3 setup.py test -s plinth.tests.test_actions.TestActions
# Run one test in a class or module
$ python3 setup.py test -s plinth.tests.test_actions.TestActions.test_is_package_manager_busy
```
## Running the Test Coverage Analysis
To run the coverage tool: