Files
git.stella-ops.org/docs/features/unchecked/cli/policy-dsl-testing-cli.md

1008 B

Policy DSL Testing CLI

Module

Cli

Status

IMPLEMENTED

Description

Run coverage test fixtures against policy DSL files with fixture directory selection, pattern filtering, fail-fast mode, and multi-format output.

Implementation Details

  • Command Group: src/Cli/StellaOps.Cli/Commands/PolicyCommandGroup.cs -- policy test commands
  • Policy DSL: src/Policy/StellaOps.PolicyDsl/ -- DSL test infrastructure
  • Commands:
    • stella policy test <file> -- run tests against policy DSL. Options: --fixtures <dir>, --pattern <glob>, --fail-fast, --format table|json|junit

E2E Test Plan

  • Run stella policy test ./policy.stella --fixtures ./fixtures/ and verify test execution
  • Run with --pattern "*critical*" and verify pattern filtering
  • Run with --fail-fast and verify early exit on first failure
  • Run with --format junit and verify JUnit XML output
  • Verify coverage report generated
  • Verify clear pass/fail indicators per test case