Why is testing so important? 👇
✅ Improves code quality
✅ Makes future development easier
✅ Reduces development time
This workshop will teach you how to test your python code using pytest while ensuring a high code coverage.
-
Install Python
-
Install pytest
pip install pytest-cov
-
Clone your fork
git clone https://github.com/[YOUR_USERNAME]/python-testing-workshop
Tasks | Description |
---|---|
Task 1 - Fundamentals of unit testing | Learn the fundamentals of code testing |
Task 2 - Catch bugs with tests | Use tests to debug your code! |
Task 3 - Automation with Github Actions | Continuous Integration: automate your test suite |
Task 4 - Test Driven Development (WIP) | Write tests first, then code! |
Task 5 - Unit tests VS integration tests (WIP) | Learn why unit testing isn't enough |
Feel free to contribute to this workshop by:
💻 Proposing new tasks and/or extending the existing ones
⭐ Starring the repo
- Task on Test Driven Development (TDD)
- General introduction to testing (slides? notebook?)
- Task on Integration Tests
- Task on Performance Tests
- Add resources and links to other good workshops