[Feature] `evidence setup` gives Ruby (RSpec) and PHP (PHPUnit) units test timings

Open
#6,336 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@iamcipherdev is already working on this.

Since Nov 26, 2026.

  • #6368 by @iamcipherdev — open
  • #6441 by @Papito084 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
php, python, ruby
Domain
testing, tooling

Research direction

Read docs/architecture/runtime-evidence-languages.md and inspect the Ruby and PHP builders in packages/core/src/repowise/core/test_runners/stacks.py, plus the existing cases in tests/unit/test_coverage_stacks.py. Add the specified JUnit settings and formatter note, then verify the small RSpec and PHPUnit JUnit fixtures ingest with test file paths while coverage commands remain unchanged. Two linked pull requests are already open, so check their status before starting.

Written by the indexing model from the issue text.

Description

enhancement good first issue

Guide: follow Adding a language to runtime evidence: test timings. It covers how a stack declares a report, what setup must print, and the tests to write.

Summary

Ruby and PHP units get coverage commands from evidence setup but no test timings line: neither stack sets a JUnit report.

packages/core/src/repowise/core/test_runners/stacks.py:1335-1341 (Ruby), :1364-1375 (PHP)

test=f"vendor/bin/{runner} --coverage-clover clover.xml",

Mechanism

  • The timings line, the CI file and the run setup prints read junit_report and junit_flag (:108-117).
  • PHPUnit and Pest take --log-junit junit.xml, and write file= on each case, so placement needs nothing new.
  • RSpec needs the rspec_junit_formatter gem: --format progress --format RspecJunitFormatter --out junit.xml. The Ruby builder already prints a Gemfile note for SimpleCov, which is the precedent.

Repro

repowise evidence setup on minimal fixtures:

ruby (rspec, bundler) at the repository root
  coverage: bundle exec rspec
  ...
php (phpunit, composer) at the repository root
  coverage: vendor/bin/phpunit --coverage-clover clover.xml
  ingest (from the repository root): repowise coverage add clover.xml

Neither prints test timings:.

Done looks like

  • PHP: junit_report="junit.xml", junit_flag="--log-junit junit.xml".
  • Ruby (rspec only): the flags above, plus a Gemfile note when rspec_junit_formatter is missing. Minitest and rake test stay without timings for now.
  • Must not change: coverage commands or reports.
  • First issue: two small builders.

Tests

tests/unit/test_coverage_stacks.py cases for both. Small RSpec and PHPUnit JUnit fixtures ingest with test files placed.

Dominant language
Python
Stars
7.1k
Forks
756
Avg merge
21h 5m
Merged PRs (30d)
797

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from repowise-dev/repowise

All issues in repowise-dev/repowise

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.