Skip to main content

Execute Luau tests on Roblox Cloud

Project description

Roblox Test Runner

Execute Luau tests on Roblox Cloud with ease.

Features

  • ✅ Execute TestEZ tests on Roblox Cloud
  • ✅ Watch mode for automatic re-running
  • ✅ JSON output for CI/CD integration
  • ✅ Customizable timeouts
  • ✅ Clean, modular codebase

Installation

From Tooling Managers

Foreman / Aftman (foreman.toml, aftman.toml):

[tools]
roblox-test-runner = { source = "gado7h/roblox-test-runner", version = "1.0.0" }

Rokit (rokit.toml):

[tools]
roblox-test-runner = "gado7h/roblox-test-runner@1.0.0"

As a Standalone Package

pip install roblox-test-runner

From Source

git clone https://github.com/yourusername/roblox-test-runner.git
cd roblox-test-runner
pip install -e .

Usage

Configuration (Required)

You must configure your API credentials. You can do this via environment variables or the config command.

Method 1: Interactive Config

roblox-test-runner config

Method 2: Environment Variables Create a .env file or set these variables:

ROBLOX_API_KEY=your_api_key_here
UNIVERSE_ID=9635698060
PLACE_ID=131722995820694

Get your API key from Roblox Creator Dashboard.

Project Structure

The test runner expects the following structure:

your-project/
├── src/              # Luau source files
│   ├── shared/       → ReplicatedStorage
│   ├── server/       → ServerScriptService
│   └── client/       → StarterPlayer
├── Packages/         # Wally packages
├── tests/            # Test files (*.spec.luau)
└── .env              # API credentials

CLI Reference

usage: roblox-test-runner [-h] [-l] [-v] [-j] [-w] [-t SECONDS] [test]

Options:
  -l, --list            List all available tests
  -v, --verbose         Show detailed output
  -j, --json            Output results as JSON
  -w, --watch           Watch for changes
  -t, --timeout SECONDS Custom timeout per test (default: 60)

Development

# Install in development mode
cd tools
pip install -e .[dev]

# Run tests
pytest

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please open an issue or PR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roblox_test_runner-1.0.2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roblox_test_runner-1.0.2-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file roblox_test_runner-1.0.2.tar.gz.

File metadata

  • Download URL: roblox_test_runner-1.0.2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for roblox_test_runner-1.0.2.tar.gz
Algorithm Hash digest
SHA256 47c951cf9378cb2180aa473f7bc2a396c5cab4e592991bd673dd18ec2847c6f5
MD5 03e71996878e8ed816fe4113dae3e416
BLAKE2b-256 0a6cb935ce91adf5cfd17a0cd86614a0fcf231d932206914580170c2d3dd7edb

See more details on using hashes here.

File details

Details for the file roblox_test_runner-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for roblox_test_runner-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46d267c95f52373bb58747b1c6b3e1796821c9ae424c723e9dcef84733a78287
MD5 d0f01ab295b021baabd5004f49469251
BLAKE2b-256 647f51ee8858f3161545fd0e0f706e3db69d3621917076efda8e430afbc06bfc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page