Skip to content

Show pass counts in test runner module rows#1576

Merged
grilledham merged 1 commit into
Refactorio:developfrom
lex:test-runner-pass-counts
Jul 11, 2026
Merged

Show pass counts in test runner module rows#1576
grilledham merged 1 commit into
Refactorio:developfrom
lex:test-runner-pass-counts

Conversation

@lex

@lex lex commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Module rows in the in-game test viewer showed only the total test count, so a module with a single failure read the same as one that failed entirely — e.g. a red Gui (17) where 12 of the 17 actually passed.

After a run, module rows now show passed/total, e.g. Gui (12/17). Modules with no results yet keep the plain total, so an unrun module doesn't misleadingly read as 0/17.

Implementation: mark_module_for_passed in the runner already walks the module tree after every run to set the pass/fail colouring, so it now also tallies passed and ran tests per module in the same pass. The viewer uses the tally when present.

Before

Screenshot 2026-07-10 at 23 07 49

After

Screenshot 2026-07-10 at 23 08 27

🤖 Generated with Claude Code

Module rows in the test viewer showed only the total test count, so a
module with a single failure read the same as one that failed entirely.
After a run they now show passed/total, e.g. 'Gui (12/17)'. Modules
with no results yet keep the plain total.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@grilledham grilledham left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvment.

@grilledham grilledham merged commit 33bdd2a into Refactorio:develop Jul 11, 2026
1 check passed
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.

2 participants