Testing & QA

Automated verification of your business rules.

Avoid Regressions

When you update a rule for one scenario, you might accidentally break another. Testing ensures all your existing use cases still work as expected.

Build with Confidence

Promote rules to Production only after 100% of your test suite passes in Staging. Mindlyr provides a clear "Green/Red" status for every version.

Defining Test Cases

A test case in Mindlyr consists of an Input Context and an Expected Output.

Test File Structure
Input
{
  "lead_score": 95,
  "country": "US"
}
Expected Output
{
  "action": "AUTO_APPROVE",
  "priority": "HIGH"
}

Running Tests

Via Dashboard (Recommended)

Navigate to any Rule and click the "Tests" tab. You can run individual tests or the entire suite with one click.

Automated QA Runs

You can trigger a full test suite run when promoting to Staging or Production. Mindlyr can block deployments if tests fail.

Coming soon: CI/CD GitHub Actions integration

Performance Benchmarks

Testing also helps you monitor execution time. If a complex rule starts taking more than 50ms to evaluate, Mindlyr will flag it for optimization.

Avg Latency: 12ms
P95 Latency: 45ms