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.1.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.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roblox_test_runner-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ea9f33f3f71e8615cd23e38c0ec21c9f6077e4d6262374d40d8ee0f8a24ca06e
MD5 6b7d2f4d71cd99761bc436279e075a06
BLAKE2b-256 c266ca17b6e7c84073b7be85ab8e5c46ebdbf8f0330737bcd2186a2bbaaedab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for roblox_test_runner-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e05257aac1d3808293f666def3c6372e1456f0969955cd06e55fb3c5d6f2c39
MD5 232487f976ad411cfb846a2f1031c74c
BLAKE2b-256 045f99464c19c60d72d33e09c83edd4bace1734bf81922ecadfd0f15ffbe288b

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