probador
probador (Spanish: "tester") is the CLI tool for Probar - a Playwright-compatible testing framework for WASM games and applications.
Note: The library is published separately as jugar-probar.
Installation
Quick Start
# Validate a playbook state machine
# Run with mutation testing (M1-M5 falsification)
# Export state diagram
# Run tests
# Run tests with coverage
# Watch mode for development
# Start dev server for WASM
Commands
| Command | Description |
|---|---|
test |
Run tests with optional filtering |
playbook |
YAML-driven state machine testing |
coverage |
Generate coverage reports |
record |
Record test execution as GIF/MP4 |
report |
Generate HTML/JSON/JUnit reports |
serve |
Development server for WASM |
watch |
Watch mode with hot reload |
init |
Initialize new test project |
config |
View/manage configuration |
Playbook Testing
probador supports YAML-driven state machine testing with mutation testing:
# login.yaml
version: "1.0"
name: "Login Flow"
machine:
id: "login"
initial: "logged_out"
states:
logged_out:
id: "logged_out"
logging_in:
id: "logging_in"
logged_in:
id: "logged_in"
final_state: true
transitions:
- id: "start_login"
from: "logged_out"
to: "logging_in"
event: "submit"
- id: "complete_login"
from: "logging_in"
to: "logged_in"
event: "success"
# Validate
# Export as SVG diagram
# Mutation testing (M1-M5 classes)
Mutation Classes
| Class | Description |
|---|---|
| M1 | State removal |
| M2 | Transition removal |
| M3 | Event swap |
| M4 | Target swap |
| M5 | Guard negation |
Library Usage
For programmatic usage in Rust tests, add the library crate:
use *;
Documentation
- Book - Comprehensive guide
- API Docs - Library documentation
- CLI Reference - Full command reference
License
MIT OR Apache-2.0