Skip to content

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

Open
GokhanKabar wants to merge 1 commit intortk-ai:masterfrom
GokhanKabar:fix/pytest-quiet-mode-no-tests-collected
Open

fix(pytest): -q mode summary line not detected#588
GokhanKabar wants to merge 1 commit intortk-ai:masterfrom
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>
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.

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

1 participant