Skip to content

fix: detect Python test_*.py files in statusline test counter (#1463)#1592

Open
ousamabenyounes wants to merge 1 commit intoruvnet:mainfrom
ousamabenyounes:fix/issue-1463
Open

fix: detect Python test_*.py files in statusline test counter (#1463)#1592
ousamabenyounes wants to merge 1 commit intoruvnet:mainfrom
ousamabenyounes:fix/issue-1463

Conversation

@ousamabenyounes
Copy link
Copy Markdown

Summary

Fixes #1463

  • Added n.startsWith('test_') to the test file detection condition in statusline-generator.ts, matching Python/pytest's standard test_*.py naming convention
  • Existing conventions (*.test.*, *.spec.*, *_test.*, *_spec.*) remain unchanged

Verification

  • Baseline tests: 1221 pass, 4 pre-existing failures
  • Post-fix tests: no regressions
  • New tests: 13 added, all pass (source-level, pattern simulation, runtime directory scan)
  • Review agent: issue alignment verified

Files changed

File Change
v3/@claude-flow/cli/src/init/statusline-generator.ts Added n.startsWith('test_') to detection condition
v3/@claude-flow/cli/__tests__/statusline-python-tests.test.ts 13 new tests covering all naming conventions

Generated by Claude Code
Vibe coded by ousamabenyounes

…#1463)

The getTestStats() function only matched *.test.*, *.spec.*, *_test.*, *_spec.*
conventions — missing Python/pytest's standard test_*.py naming. Added
n.startsWith('test_') to the detection condition.

Generated by Claude Code
Vibe coded by ousamabenyounes

Co-Authored-By: Claude <noreply@anthropic.com>
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.

Statusline test counter misses Python test_*.py naming convention

1 participant