Flight Lab / Assurance and automation / 02
Lesson 02 of 06 · about 4 min
A fixture’s scope says how long its value lives. Function scope builds a fresh value for each test. Session scope builds one value for the whole run. A port left open from a failed test will poison the next test if they share it.
Each test talks to the flatsat on its own serial port. Pick the scope.