Skip to content

RemDelaporteMathurin/python-testing-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Testing Workshop

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.

Getting started

  1. Install Python

  2. Install pytest

pip install pytest-cov
  1. Fork this repo

  2. Clone your fork

git clone https://github.com/[YOUR_USERNAME]/python-testing-workshop

Workshop tasks

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

Contribution

Feel free to contribute to this workshop by:

🎤 Giving your feedback

💻 Proposing new tasks and/or extending the existing ones

⭐ Starring the repo

Todo

  • 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