April 2020
Intermediate to advanced
294 pages
7h 53m
English
Before we dive in and start developing tests, we should spend a few minutes thinking about how we are going to organize our test harness. I like to create modules that represent the tests for the device under test. For example, if I have a module named PCA8574.py, I will create a separate module named PCA8574_tests.py. As I construct my software module, I will also add tests to make sure that I'm not overlooking anything. There are formalized processes such as Test-Driven Development (TDD) that can be followed, but I'm not as strict in my own implementations.
Each of the *_tests.py modules will be invoked through another high-level test module called test_harness.py. test_harness.py is called from the ...
Read now
Unlock full access