rtk-ai/rtk

Add rtk ctest filter (summarize on pass, keep failing-test output)

開放

#2,237 建立於 2026年6月3日

 (1 則留言) (0 個反應) (0 位負責人)Rust (2,914 個分叉)batch import
area:clienhancementhelp wantedpriority:medium

倉庫指標

星標
 (48,085 顆星)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

Summary

Add an rtk ctest filter. CTest output lists every test with pass/timing lines; on a green run the per-test detail is low-value, while on failure the failing test's captured output is what matters.

Why

rtk discover flagged ctest as an unhandled command: 41 invocations over 30 days (e.g. ctest -R "test_..." --output-on-failure), with no RTK equivalent.

Suggested behavior

  • On all-pass: collapse to a summary (N/N passed, total time, slowest few), drop per-test Test #k: ... Passed lines.
  • On failure: keep the failing tests' names and their captured stdout/stderr verbatim (respect --output-on-failure), drop passing-test noise.

貢獻者指南