Skip to content

Add 'project applicable-tests' command (#1206) - #141

Merged
rquidute merged 2 commits into
project-chip:v2.17-cli-developfrom
rquidute:feature/1206-applicable-tests-cli
Nov 11, 2026
Merged

rquidute merged 2 commits into
project-chip:v2.17-cli-developfrom
rquidute:feature/1206-applicable-tests-cli

Conversation

@rquidute

Copy link
Copy Markdown
Contributor

Summary

Adds th-cli project applicable-tests --id N [--json], which lists the test cases that apply to a project based on its PICS configuration and dmp_test_skip setting.

The backend endpoint GET /api/v1/projects/{id}/applicable_test_cases and its autogen client method already existed, but no CLI command used them. No backend or autogen changes.

Closes #1206

Behavior

  • Sorted test IDs, one per line, on stdout. The count goes to stderr so the output can be piped.
  • --json prints the raw response.
  • Backend errors (404/422) are reported with the project ID.

Testing

  • 6 new unit tests in tests/test_project_commands.py (sorted output, empty, --json, API error, missing --id, help); all pass.
  • The full suite has 47 failures in test_run_tests, test_tc_params_mapping and test_validation that also occur on the base branch.
  • Not yet run against a live backend.

Docs: CLI README section added. User Guide update is in the main-repo PR.

…es (#1206)

Calls GET /api/v1/projects/{id}/applicable_test_cases, which the autogen
client already exposed but no command used. Prints sorted test IDs one per
line (count on stderr) or the raw response with --json.
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 55a000bd-fe54-41d1-b866-8e97dda57072

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@rquidute rquidute self-assigned this Nov 10, 2026
@rquidute
rquidute merged commit adb4fed into project-chip:v2.17-cli-develop Nov 11, 2026
6 checks passed
@rquidute
rquidute deleted the feature/1206-applicable-tests-cli branch November 11, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants