Open
Description
During the lecture of testing a Python code in the winter semester 2024/25, the following points are potential places of improvements came up:
- Mention the teardown/cleanup functionality in pytest.
- Explain unittest test discovery mechanism in detail.
- If time permits, explain more features of tox.
- Change the code example used in the lecture demo to have two functions which actually affect each others behavior, so that the integration test actually makes sense. Right now the integration test is written just for the sake of it, without any logical reason.
- Explicitly mention in the demo notes what the
-m
option in thecoverage
command does.