Isolating the Proctor’s Boundary Concerns
Explore strategies to isolate boundary concerns in Elixir's proctor scheduler, focusing on avoiding fragile sleep-based tests. Learn to modify code for custom notifications to make testing more reliable and efficient when quizzes start and stop, enhancing both test simplicity and overall project quality.
We'll cover the following...
We'll cover the following...
In many ways, our proctor is the most significant testing challenge in this course. We have a scheduler that depends on concepts of both mutability and time, ideas that are generally kryptonite for tests.
Properties of our proctor that make testing difficult
The scheduler has three events:
-
Schedule
-
Start quiz
-
Stop quiz ...