mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Refactor TestCase files into python modules
Convert all TestCase files into standard python modules to be run and discovered by unittest.
This commit is contained in:
parent
4d6682bc70
commit
7ff32bc4b0
34 changed files with 471 additions and 1260 deletions
|
@ -53,13 +53,13 @@ To run the full test suite:
|
|||
|
||||
tests/run-tests
|
||||
|
||||
To run the tests for individual Python modules, see the _.TestCase_ files, e.g.:
|
||||
To run the tests for individual Python modules, see the `tests/test_*.py` files, e.g.:
|
||||
|
||||
tests/metadata.TestCase
|
||||
python -m unittest tests/test_metadata.py
|
||||
|
||||
It is also possible to run individual tests:
|
||||
|
||||
tests/metadata.TestCase MetadataTest.test_rewrite_yaml_special_build_params
|
||||
python -m unittest tests.test_metadata.MetadataTest.test_rewrite_yaml_special_build_params
|
||||
|
||||
There is a growing test suite that has good coverage on a number of key parts of
|
||||
this code base. It does not yet cover all the code, and there are some parts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue