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, Rokit)

Add this to your configuration file (e.g., foreman.toml, aftman.toml, rokit.toml):

[tools]
roblox-test-runner = { source = "gado7h/roblox-test-runner", version = "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.0.tar.gz (25.0 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.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roblox_test_runner-1.0.0.tar.gz
  • Upload date:
  • Size: 25.0 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.0.tar.gz
Algorithm Hash digest
SHA256 794d1376c9e3a2278a499a794e46883c9709f15844078e8a3208724b77aeb563
MD5 54c9595a4981f12824ef04de3025249f
BLAKE2b-256 22c967c13d6d25d75d4fc4b49be360dcdfa2d8e7c4788b3778c74631fc2378b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for roblox_test_runner-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30bd26584ef94ae30bf38e0f226a297d41cf1c960405b59dfc95a1705ef34a30
MD5 f44e6ebe911b9c2024508e40356b08b4
BLAKE2b-256 b9e73fac4a7ed249525aed660257d15a41c3295a5e92961be424ed0a79d0a279

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