diff --git a/src/Plugins/Help.php b/src/Plugins/Help.php index 12d03532..1260d243 100644 --- a/src/Plugins/Help.php +++ b/src/Plugins/Help.php @@ -114,6 +114,41 @@ final readonly class Help implements HandlesArguments ], ]; + $content['Tia'] = [ + [ + 'arg' => '--tia', + 'desc' => 'Re-run only the tests affected by your changes, replaying the rest from cache', + ], + [ + 'arg' => '--no-tia', + 'desc' => 'Disable test impact analysis for this run', + ], + [ + 'arg' => '--tia --fresh', + 'desc' => 'Discard the recorded dependency graph and record it again', + ], + [ + 'arg' => '--tia --filtered', + 'desc' => 'Narrow the run to the affected test files only', + ], + [ + 'arg' => '--tia --locally', + 'desc' => 'Enable test impact analysis on local machines only', + ], + [ + 'arg' => '--tia --baselined', + 'desc' => 'Fetch the shared dependency graph recorded by the CI baseline', + ], + [ + 'arg' => '--tia --refetch', + 'desc' => 'Force a fresh fetch of the shared dependency graph', + ], + [ + 'arg' => '--baseline', + 'desc' => 'Output to standard output the test impact analysis storage directory', + ], + ]; + $content['Execution'] = [...[ [ 'arg' => '--parallel', diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 5555c2b4..17b6c91f 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -168,6 +168,16 @@ AI OPTIONS: --ai ..... Run a code snippet as a fully scaffolded test for AI verification + TIA OPTIONS: + --tia Re-run only the tests affected by your changes, replaying the rest from cache + --no-tia ......................... Disable test impact analysis for this run + --tia --fresh .... Discard the recorded dependency graph and record it again + --tia --filtered ............ Narrow the run to the affected test files only + --tia --locally ......... Enable test impact analysis on local machines only + --tia --baselined Fetch the shared dependency graph recorded by the CI baseline + --tia --refetch ......... Force a fresh fetch of the shared dependency graph + --baseline Output to standard output the test impact analysis storage directory + MUTATION TESTING OPTIONS: --mutate .... Runs mutation testing, to understand the quality of your tests --mutate --parallel ...................... Runs mutation testing in parallel