Draft preview · this lesson is still being technically validated. Browser experiments and reference material remain available; trusted completion is enabled after publication.

← Back to journey

Test, profile and prepare a small release

v2 · Activity 1 of 0 · testing · profiling · release · 28 min Requires Roblox Studio

Chapter outline
Loading draft…
Mini-mission

Use a local server with several clients to check context, requests, duplicated actions and cleanup. Device emulation helps reveal UI problems that a desktop-only test misses.

Profile a suspected task with debug.profilebegin and debug.profileend, then inspect the MicroProfiler. One measurement on one machine is evidence for that scenario, not a universal performance guarantee.

Your task

Add the controlled acceptance Script below to test your quest summary. Profile the named task, run two clients, inspect mobile UI, and produce a release note listing tested behavior and remaining production work.

Interface: Complete the documented Studio hierarchy and self-check the behavior outside the browser.

InputExpected
Syntax in this activity

New syntax: testing, profiling, release

Earlier ideas used here
  • updateasync
  • session-ownership
  • stale-writes
Self-check rubric
  • Empty, mixed and complete quest cases pass.
  • Two clients cannot change another player’s protected state.
  • Duplicate requests and teardown behave as documented.
  • Phone/tablet controls remain readable and reachable.
  • Release notes name test environment, content/schema version, rollback source and known limitations.

Your explanation is a self-check. Exact wording is not automatically graded.

Self-checked Studio exercise. A saved checklist records your own review; no uploaded place file or screenshot is executed here.

Build this hierarchy

ServerScriptService/ReleaseChecks (Script, RunContext=Server)
Your project’s existing server modules and client interface
  1. Use a separate local test place or a private test experience.
  2. Add ReleaseChecks alongside your project; run Play and inspect Output.
  3. Open the MicroProfiler using the current Studio menu or documented shortcut; find QuestSummaryAcceptance.
  4. Use server/two-client testing and phone/tablet emulation for your project interface.
ServerScriptService/ReleaseChecks.server.luau

Main guided reference implementation; use the hierarchy’s stated Script or ModuleScript type.

local function completedCount(objectives)
    local done = 0
    for _, objective in ipairs(objectives) do if objective.complete then done += 1 end end
    return done
end
debug.profilebegin("QuestSummaryAcceptance")
assert(completedCount({}) == 0)
assert(completedCount({{complete=true},{complete=false}}) == 1)
assert(completedCount({{complete=true},{complete=true}}) == 2)
debug.profileend()
print("Quest summary acceptance checks passed")

Expected output

  • Server Output prints Quest summary acceptance checks passed.
  • The named profiling scope appears during the controlled task.

Studio assessment checklist

Multiplayer tests

  1. Run two clients through valid, invalid, repeated and disconnected interactions.
  2. Inspect server state separately from client labels.
Troubleshooting and production considerations

An assertion failure is a useful acceptance failure; keep the expected and observed values in your notes.

Very brief tasks may be difficult to locate in a profile; measure a controlled repeated batch without turning it into per-frame production work.

This is a bounded learning lab. It has not been executed in an approved Roblox Studio environment by this website.

A checked checklist records your own review, not automated project competence or a community verification.

Your goal

Add the controlled acceptance Script below to test your quest summary. Profile the named task, run two clients, inspect mobile UI, and produce a release note listing tested behavior and remaining production work.

Reset starter

Replace this code with the starter? Download your draft to keep a copy.

Code

Studio source file
Luau keyword highlighting · Ctrl/⌘ + Enter: Run · Esc: leave editor

Edit and run these files in Roblox Studio. This browser has no Roblox services, physics, or replication.

Your output will appear here.

Ready