mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
HACKING: Commands to run a single test method, class or module
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
9dae13ada5
commit
344b1b8366
19
HACKING.md
19
HACKING.md
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user