Tutorial¶
This tutorial will walk you through Test Driven Development using Testix and pytest.
We will develop a small project in this tutorial, test driven of course, which solves the following real-life problem: suppose you want to run some subprocess, and you want to read its output line-by-line in real time and take appropriate action.
An example application might be that you want to monitor live logs and do something
whenever a log line has ERROR
in it.
Let’s call this library LineMonitor
.