Skip to content

Document --test/--spec CLI flags and testFilter/specFilter config#25

Closed
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/pr-286-test-spec-filters
Closed

Document --test/--spec CLI flags and testFilter/specFilter config#25
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/pr-286-test-spec-filters

Conversation

@promptless
Copy link
Copy Markdown
Contributor

@promptless promptless Bot commented Apr 30, 2026

Open this suggestion in Promptless to view citations and reasoning process

Documents the new CLI flags (--test/-t and --spec/-s) for filtering test runs by testId and specId regex patterns, and the equivalent testFilter and specFilter configuration fields with usage examples.

Trigger Events


Tip: Adjust how proactive or focused Promptless is in Agent Settings ⚙️

…ions

Add documentation for new CLI flags (--test/-t and --spec/-s) that filter
test runs by testId and specId regex patterns. Also document the equivalent
testFilter and specFilter configuration fields with examples.
| `--fix-threshold <n>` | `80` | Confidence threshold (0–100) for auto-applying fixes |
| `--max-fix-attempts <n>` | `3` | Maximum fix iterations per failing test |
| `--inject` | `false` | Inject passing tests into source file after completion |
| `--test <patterns>` / `-t` | — | Run only tests whose `testId` matches the given regex patterns. Comma-separate multiple patterns; a test runs if any pattern matches. Case-insensitive. |
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLI options --test/-t and --spec/-s added in PR #286. The PR's src/utils.ts defines both options with yargs, parsing comma-separated patterns into string arrays that populate config.testFilter and config.specFilter.

Source: doc-detective/doc-detective#286

@@ -65,6 +67,8 @@ interface Config {
runOn?: Context[]; // Execution contexts
concurrentRunners?: number; // Default: 1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Config fields testFilter and specFilter added in PR #286. The schema changes in config_v3.schema.json define both as string arrays with case-insensitive regex patterns applied to testId and specId respectively.

Source: doc-detective/doc-detective#286

@hawkeyexl hawkeyexl closed this May 3, 2026
@promptless promptless Bot deleted the promptless/pr-286-test-spec-filters branch May 3, 2026 12:54
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.

1 participant