Example of tests with Pytest framework and adapter for Test IT
- Install python version 3.6+
- Clone this repository
git clone https://github.com/testit-tms/python-examples.git && cd /python-examples/pytest - Install dependencies
pip install -r requirements.txt - Run tests via
pytest - Configure the tests to run in connection_config.ini file. How to configure?
- Run
pytest --testitto upload the results to TMS
- tests/ – test files
- test_annotations.py – simple test examples with annotations testit-adapter-pytest
- test_dependency.py – simple test examples with pytest dependency
- test_methods.py – simple test examples with methods testit-adapter-pytest
- test_steps.py – simple test examples with steps testit-adapter-pytest
- connection_config.ini - configuration file where specified base options for tests
- requirements.txt - list of items to be installed