You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Shawn Davis
277ec1cf6b
|
4 years ago | |
---|---|---|
.. | ||
examples | 4 years ago | |
__init__.py | 4 years ago | |
conftest.py | 4 years ago | |
readme.markdown | 4 years ago | |
requirements.pip | 4 years ago | |
test_factory.py | 4 years ago | |
test_library_commands_base.py | 4 years ago | |
test_library_commands_templates.py | 4 years ago | |
test_library_overlays_centos.py | 4 years ago | |
test_library_overlays_common.py | 4 years ago | |
test_library_overlays_django.py | 4 years ago | |
test_library_overlays_mysql.py | 4 years ago | |
test_library_overlays_pgsql.py | 4 years ago | |
test_library_overlays_posix.py | 4 years ago | |
test_library_overlays_ubuntu.py | 4 years ago | |
test_library_scripts.py | 4 years ago | |
test_parsers_base.py | 4 years ago | |
test_parsers_ini.py | 4 years ago | |
test_parsers_utils.py | 4 years ago |
readme.markdown
Testing
Set Up for Testing
Install requirements:
pip install tests/requirements.pip
Running Tests
Run all tests with coverage:
make tests
Run a specific test:
python -m pytest tests/units/path/to/test.py
Example:
python -m pytest tests/units/shortcuts/test_shortcuts.py
To allow output from print statements within a test method, add the -s
switch:
python -m pytest -s tests/units/path/to/test.py
Tip: Add
-v
to list the tests with PASS/FAIL.