@caddis/cli 0.4.12 → 0.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -325,12 +325,16 @@ def _run_tests(cmd: list[str], cwd: Path, timeout: int = 900) -> tuple[str, str]
325
325
  return (f"could not run the suite ({type(exc).__name__})", shown)
326
326
 
327
327
  blob = (r.stdout or "") + chr(10) + (r.stderr or "")
328
- # pytest's summary line is the last one naming passed/failed/error.
328
+ # The summary is the last line naming passed/failed/error. Case-insensitive, because Pester
329
+ # capitalises it (`Tests Passed: 22, Failed: 0`) — found 2026-09-10 in an all-Pester repo.
329
330
  tail = [l.strip() for l in blob.splitlines()
330
- if ("passed" in l or "failed" in l or "error" in l.lower()) and "==" not in l[:2]]
331
+ if any(w in l.lower() for w in ("passed", "failed", "error")) and "==" not in l[:2]]
331
332
  if tail:
332
333
  return (tail[-1], shown)
333
- return (f"suite did not report a summary (exit {r.returncode}) — investigate", shown)
334
+ # Say WHAT was run and how to change it. A bare "no summary" read as "this repo has no tests"
335
+ # when the truth was "the tool and the repo disagree about how to run them".
336
+ return (f"no test summary from `{shown}` (exit {r.returncode}) — if this repo's tests are "
337
+ "not pytest, set [handover] test_cmd in .caddis/config.toml", shown)
334
338
 
335
339
 
336
340
  def _test_command(root: Path) -> list[str]: