Fitting a harness into a time budget

A continuous-integration job gives a test harness a 60.0 s time budget. The harness has a one-time session startup of 2.4 s, which launches the interpreter and loads a stub server; assume session shutdown takes negligible time. Every test then uses a per-test fixture with setup 0.35 s and teardown 0.10 s, and each test body takes 0.07 s. What is the largest number of test cases that can finish within the budget? Answer as a whole number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Test Harnesses Questions: