Module 13 · In Studio · challenge 2 of 2 in this lesson

verifyCorpus checks expected coins and speedOwned, non-negative integer coins, and idempotence (second migrate matches first)

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Complete challenges/work/test_harness.luau so the migration corpus runner, two-server session lock simulator, soak gate and cloud log parser pass every check. Run game.ServerScriptService.RunGameTests:Invoke("testing-at-scale", "testing-at-scale-suite") in Studio (or test in the pure Luau runner). Written solution: challenges/solutions/testing-at-scale.md.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("testing-at-scale", "testing-at-scale-suite") in the server command bar. Copy the pass code from Output.

Done means

  • verifyCorpus checks expected coins and speedOwned, non-negative integer coins, and idempotence (second migrate matches first)
  • acquire, write and release enforce single-server lease ownership, expiry takeover and stale-server write rejection
  • evaluateSoak skips warmupCount samples, requires at least 2 post-warmup samples, and checks both heap growth percentage and p95 tick time
  • parseCloudLog returns ok = true only when TEST SUITE DONE is present, failed == 0, and passed > 0
  • challenges/testing-at-scale.luau prints TEST PASS for all 13 checks

The Course Runner prints this code when the test passes.