Example of tests with Nose 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 nose - Install dependencies
pip install -r requirements.txt - Run tests via
nose2 - Configure the tests to run in connection_config.ini file. How to configure?
- Run
nose2 --testitto upload the results to TMS
- tests/ – test files
- test_annotations.py – simple test examples with annotations testit-adapter-nose
- test_methods.py – simple test examples with methods testit-adapter-nose
- test_steps.py – simple test examples with steps testit-adapter-nose
- connection_config.ini - configuration file where specified base options for tests
- requirements.txt - list of items to be installed
- unittest.cfg - configuration file for Nose