website/reference/commands/rules/new/test.md
Use xpd rules new test to add an empty test case for a rule, by its id or its public id. It writes no
valid or invalid code, so add examples and run xpd rules test.
console
| 1 | $ xpd rules new project --pack team --yes --format json | jq -c .item |
| 2 | "project" |
| 3 | $ xpd rules new rule team/no-print --pattern 'print($X)' --message 'Use the project logger.' --yes --format json | jq -c .id |
| 4 | "team/no-print" |
| 5 | $ xpd rules new test team/no-print --yes |
| 6 | Created test team/no-print |
| 7 | created /tmp/project/rule-tests/team/no-print-test.yml |