A Guideline how to write Test Driven Development in Python using Pytest
Python 3.x should be available on OS. Create virtual environment in $HOME dir ($HOME/venv3x)
Setup
$:~/mypytest$ source ~/venv3x/bin/activate;
$:~/mypytest$ pip install -r requirements.txt
Run all test verbose
$pytest -v
Run all test with tests print
$pytest -s
Run a specific tests
$pytest -q -s ./test/maths/test_my_math.py
- 0.0.1
- Work in progress
https://github.com/afzals2000/python_tdd_pytest
- Fork it (https://github.com/afzals2000/python_tdd_pytest)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request