Skip to content

Commit 2d70291

Browse files
authored
Merge pull request #257 from GetStream/fix/no-tests-collected-not-failure
Fix/treat pytest exit 5 (no tests collected) as success
2 parents 20bcf68 + c8ff1fe commit 2d70291

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ TY_EXCLUDES := \
5656

5757
## Run non-video tests (chat, feeds, moderation, etc.)
5858
test:
59-
uv run pytest -m "$(MARKER)" tests/ getstream/ $(VIDEO_IGNORE) $(MANUAL_IGNORE)
59+
@uv run pytest -m "$(MARKER)" tests/ getstream/ $(VIDEO_IGNORE) $(MANUAL_IGNORE); \
60+
ec=$$?; if [ $$ec -eq 5 ]; then echo "No tests matched marker '$(MARKER)' — treating as success."; exit 0; else exit $$ec; fi
6061

6162
## Run video/WebRTC tests only
6263
test-video:
63-
uv run pytest -m "$(MARKER)" $(VIDEO_PATHS)
64+
@uv run pytest -m "$(MARKER)" $(VIDEO_PATHS); \
65+
ec=$$?; if [ $$ec -eq 5 ]; then echo "No tests matched marker '$(MARKER)' — treating as success."; exit 0; else exit $$ec; fi
6466

6567
## Run all tests (non-video + video), excluding manual tests
6668
test-all:

0 commit comments

Comments
 (0)