Lesson 02 of 06 · about 4 min

Fixture scope

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6

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.

On the Knowledge page

Resources