Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 0dcc2e4

Browse files
committed
use group if exists or fallback
1 parent 66fba13 commit 0dcc2e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@ test:
3434
COVERAGE_CORE=sysmon python -m pytest --cov=./ --junitxml=junit.xml -o junit_family=legacy
3535

3636
test.unit:
37-
COVERAGE_CORE=sysmon python -m pytest --splits 5 --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy
37+
@if [ -n "$(GROUP)" ]; then \
38+
COVERAGE_CORE=sysmon python -m pytest --splits 5 --$(GROUP) --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy; \
39+
else \
40+
COVERAGE_CORE=sysmon python -m pytest --cov=./ -m "not integration" --cov-report=xml:unit.coverage.xml --junitxml=unit.junit.xml -o junit_family=legacy; \
41+
fi
3842

3943
test.integration:
40-
COVERAGE_CORE=sysmon python -m pytest --splits 5 --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy
44+
@if [ -n "$(GROUP)" ]; then \
45+
COVERAGE_CORE=sysmon python -m pytest --splits 5 --$(GROUP) --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy; \
46+
else \
47+
COVERAGE_CORE=sysmon python -m pytest --cov=./ -m "integration" --cov-report=xml:integration.coverage.xml --junitxml=integration.junit.xml -o junit_family=legacy; \
48+
fi
4149

4250
lint:
4351
make lint.install

0 commit comments

Comments
 (0)