Skip to content

feat: zero-config auto-detection mode#17

Merged
maximn merged 4 commits into
mainfrom
feat/6-3-zero-config-auto-detection
Mar 27, 2026
Merged

feat: zero-config auto-detection mode#17
maximn merged 4 commits into
mainfrom
feat/6-3-zero-config-auto-detection

Conversation

@maximn
Copy link
Copy Markdown
Contributor

@maximn maximn commented Mar 27, 2026

Summary

  • Make report-path optional — when omitted, auto-detect test reports in common locations (**/junit.xml, **/ctrf-report.json, **/surefire-reports/*.xml, etc.)
  • When no files found, log a warning listing all scanned patterns and suggest specifying report-path
  • Existing explicit report-path behavior is completely unchanged (backward compatible)

Changes

File Change
action.yml report-path now required: false with default: ''
src/utils/auto-detect.ts New module — scans 7 common patterns via existing discoverReportFiles(), deduplicates with Set
src/index.ts Conditional: empty report-path → auto-detect, otherwise existing flow
src/utils/__tests__/auto-detect.test.ts 7 unit tests (patterns, dedup, sorting, empty results)
src/__tests__/index.test.ts 5 new integration tests (auto-detect entry, mixed formats, zero-file warning, explicit bypass)
dist/index.js Rebuilt

Test plan

  • 302 tests pass locally (12 new, 0 regressions)
  • Verify auto-detect triggers when report-path is omitted from workflow YAML
  • Verify explicit report-path still works identically
  • Verify zero-file warning message includes all scanned patterns

maximn added 4 commits March 27, 2026 19:41
When report-path is omitted, scan common test report locations
automatically (junit.xml, ctrf-report.json, surefire-reports, etc).
Warn with scanned patterns when no files found. Existing explicit
report-path behavior is completely unchanged.
@github-actions
Copy link
Copy Markdown
Contributor

@maximn maximn merged commit 0de07da into main Mar 27, 2026
6 checks passed
@maximn maximn deleted the feat/6-3-zero-config-auto-detection branch March 27, 2026 20:10
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