run-e2e
Installation
SKILL.md
Run E2E tests from test/new-e2e/tests/ using dda inv new-e2e-tests.run.
Instructions
-
Parse
$ARGUMENTSto determine what to run. The user may provide:- A test directory path (e.g.,
windows/install-test,agent-platform/upgrade,containers) - A test function name (e.g.,
TestInstall,TestUpgrade) - Flags to pass through (see below)
- A combination of the above
- A test directory path (e.g.,
-
Resolve the test target:
- The invoke task automatically prepends
test/new-e2e/to targets, so targets must be relative to that directory (e.g.,./tests/agent-subcommands/flare, NOT./test/new-e2e/tests/...) - If the user gives a directory like
agent-subcommands/flare, use./tests/agent-subcommands/flareas--targets - If the user gives a partial name, search for matching directories under
test/new-e2e/tests/using Glob, then strip thetest/new-e2e/prefix for the target - If the user gives a test function name (starts with
Test), find which package contains it using Grep undertest/new-e2e/tests/, then set--targetsto the package path (relative totest/new-e2e/) and--runto the test name - If ambiguous, list the matching options and ask the user to pick one
- The invoke task automatically prepends