Unit Testing with Python using unittest module
- Lets create a new folder learning and activate the virtualenv
- Lets write a sample testcase using python’s standard library unittest Refer Here
Why pytest?
- Pytest is a mature and full-featured testing framework, from small test to large scale functions for applications and libraries
- Installing Pytest Refer Here
- Pytest is simple to start with
- Refer Here to understand simple way to write the tests using pytest
- To execute the tests
pytest test_fibo.py