Unit test

A test that calls one small piece of code with chosen inputs and checks the output.

Think of it as Testing one gear on the bench instead of driving the whole car.

Unit tests run in milliseconds, need no Play session and fail with a message that points at one function. They cover rules such as prices, damage and state transitions. Integration tests (playtests) cover how the pieces are wired together.

Official reference: roblox.github.io

Related terms