Skip to content

rego

Command Reference

Definition

Run unit test cases of the rego policy files

Terminal window
./tam run

Sub-Commands

test

Evaluates a rego policy using Trimble Access Management.

Arguments

path (Required) The path to the rego policy file for running the test.

printCoverageReport (Optional) A booleon value(default false if not given), if set as true, prints the full coverage report.

Example

Terminal window
./tam run test --policy "path/to/policy/folder"--printCoverageReport true
Terminal window
./tam run test --policy "path/to/policy/folder"