


So let's say you have a simple utility class in a ModuleScript called MathUtil local MathUtil = In this step we need to create ModuleScripts with names ending in `.spec` and write tests for our source code.Ī common way to structure code is with your code classes in ModuleScripts and their tests right next to them. Move this ModuleScript somewhere like ReplicatedStorage.It will unpack the library into a ModuleScript with the same name. Drag the newly created TestEZ.rbxm file into the world.Make sure that it generated a new file called TestEZ.rbxm in that directory.Build the TestEZ library with this command rojo build -output TestEZ.rbxm.Open a Powershell or Terminal window and navigate into the downloaded TestEZ directory.This program allows you to convert project directories into.

Get the TestEZ Library into Roblox Studio This example will run in RobloxStudio, but you can pair it with other libraries like Lemur for command-line and continuous integration workflows. It allows you to specify a location where test files exist and will gives you pretty detailed output as to how your tests did. It was developed in-house by Roblox engineers to allow for behavior driven tests. For lua modules, I would recommend the library TestEZ.
