-
download and install required packages
pip install -r requirements.txt -
run using terminal -
1. run full project - pytest directory_name(pytest Pytest_Topics) 2. run single file - pytest directory_name/test_file_name(pytest Pytest_Topics/test_module_number.py) 3. run single module - pytest directory_name/test_file_name::module_name (pytest Pytest_Topics/test_assertion.py::test_character_match) 4. search and run module name - pytest -v -k module_name (pytest -v -k test_character_match) 5. print function - pytest directory_name -s (pytest Pytest_Topics -s) 6. show extra info on xfailed, xpassed, and skipped tests - pytest directory_name -rxXs( pytest test_markers.py -rxXs) NB: Go to the project directory and type the command
-
Notifications
You must be signed in to change notification settings - Fork 0
The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
License
sharisroy/PyTest
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published