Skip to content

feat(mvn): Maven filter + Surefire/Failsafe XML enrichment#5

Open
mariuszs wants to merge 1 commit intodevelopfrom
feat/mvn-surefire-xml
Open

feat(mvn): Maven filter + Surefire/Failsafe XML enrichment#5
mariuszs wants to merge 1 commit intodevelopfrom
feat/mvn-surefire-xml

Conversation

@mariuszs
Copy link
Copy Markdown
Owner

Summary

  • Add Maven (Java) filter module with state-machine parsers for mvn test, compile, checkstyle:check, dependency:tree
  • Enrich mvn test/verify failure output with structured details from target/surefire-reports/TEST-*.xml and target/failsafe-reports/*.xml
  • Stack traces segmented on Caused by: with framework frames collapsed and root-cause preserved
  • Autodetect application package from pom.xml <groupId> (override via RTK_MVN_APP_PACKAGE)
  • Red-flag heuristic for "0 tests" with no fresh XML reports
  • Time-gated report reads skip stale files from previous runs
  • 97-99%+ token savings on happy path, ≥85% on enriched failure path

Test plan

  • Snapshot tests for enriched surefire/failsafe rendering
  • Token savings assertions (happy path identity, failure path ≥85%)
  • Stack trace parsing: segments, framework collapsing, root-cause cap, hard cap
  • Surefire XML: passing/failing/skipped/error testsuites, system-out/err capture
  • pom.xml groupId detection: top-level, parent fallback, env override, missing
  • Time-gate: stale files skipped, fresh files parsed
  • All 1683 tests pass, zero clippy warnings

Add Java ecosystem support with state-machine parsers for mvn test,
compile, checkstyle:check, and dependency:tree (97-99%+ token savings).

Enrich test failure output with structured details from Surefire/Failsafe
XML reports: stack traces segmented on Caused-by with framework frames
collapsed, root-cause preserved, captured stdout/stderr per failing test.

Autodetect application package from pom.xml groupId for frame
classification (override via RTK_MVN_APP_PACKAGE). Time-gated report
reads skip stale files. Red-flag heuristic for zero-test runs.
@mariuszs mariuszs force-pushed the feat/mvn-surefire-xml branch from 2a1eea8 to b128e95 Compare April 16, 2026 06:18
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