Skip to content

fix(pytest): -q mode summary line not detected#588

Open
GokhanKabar wants to merge 2 commits intortk-ai:developfrom
GokhanKabar:fix/pytest-quiet-mode-no-tests-collected
Open

fix(pytest): -q mode summary line not detected#588
GokhanKabar wants to merge 2 commits intortk-ai:developfrom
GokhanKabar:fix/pytest-quiet-mode-no-tests-collected

Conversation

@GokhanKabar
Copy link

Fixes #565

In quiet mode, pytest emits the final summary without === wrappers. The parser only matched ===-prefixed lines, so the summary was never captured and RTK fell back to the wrong message.

…lected"

pytest -q emits the final summary without === wrappers. The parser only
matched === prefixed lines, leaving summary_line empty and triggering
the wrong "No tests collected" message.

- detect bare summary lines in quiet mode (no === wrapper)
- fix false "No tests collected" when only skipped tests exist
- add 2 tests covering both cases

Fixes rtk-ai#565

Signed-off-by: GokhanKabar <gokhankabar@hotmail.fr>
@pszymkowiak
Copy link
Collaborator

Please retarget this PR to develop instead of master. We use develop as the integration branch — master is for releases only. You can change the base branch in the PR settings. Thanks!

@pszymkowiak pszymkowiak added the wrong-base PR targets master instead of develop label Mar 17, 2026
@GokhanKabar GokhanKabar changed the base branch from master to develop March 17, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wrong-base PR targets master instead of develop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: rtk pytest -q incorrectly reports "Pytest: No tests collected" when tests are actually executed

2 participants