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

Uploaded Python 3

File details

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

File metadata

  • Download URL: roblox_test_runner-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 803b27ffa34b1faa9f1da45f948560aa590405449b284458ec4fe8156812b756
MD5 3298369ed2bccd8beec2eddb77789e67
BLAKE2b-256 c8d04f703ba6a7cd1ee2af1d8b1d4794e2e56c2a832a8f42220a16bf1a99aa1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for roblox_test_runner-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8de59084423a6bb992d9827eec0f8432a15ec1eacea303f318d7d5a3b53f23
MD5 5c8ce3963a4801683729824d7429b4c9
BLAKE2b-256 379632078bf19dfe28892f8b4ba1834774402645076cb0672b03411e3d2b8853

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