Skip to content

Commit f6477ca

Browse files
committed
Enable Unit test coverage upstream
Signed-off-by: Nicola Sella <nsella@redhat.com>
1 parent cbd660d commit f6477ca

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.packit.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ jobs:
113113
- fedora-latest-stable
114114
skip_build: true
115115

116+
- job: tests
117+
trigger: pull_request
118+
identifier: upstream-coverage-unittest
119+
tmt_plan: /upstream/coverage-unittest
120+
packages: [python-podman-fedora]
121+
116122
- job: tests
117123
trigger: pull_request
118124
identifier: upstream-all-fedora

plans/main.fmf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ prepare:
6060
discover+:
6161
filter: tag:matrix
6262

63+
/unittest_coverage:
64+
summary: Run Unit test coverage
65+
discover+:
66+
filter: tag:coverage & tag:unittest
67+
6368
adjust+:
6469
enabled: false
6570
when: initiator is not defined or initiator != packit

tests/main.fmf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ require:
88
test: cd .. && make lint
99

1010
/coverage_integration:
11-
tag: [ stable, coverage ]
11+
tag: [ stable, coverage, integration ]
1212
summary: Run integration tests coverage check
1313
test: cd .. && make integration
1414

1515
/coverage_unittest:
16-
tag: [ stable, coverage ]
16+
tag: [ stable, coverage, unittest ]
1717
summary: Run unit tests coverage check
1818
test: cd .. && make unittest
1919

@@ -25,7 +25,7 @@ require:
2525
duration: 10m
2626

2727
/all_python:
28-
tag: [ matrix]
28+
tag: [ matrix ]
2929
summary: Run all tests for all ptyhon versions available
3030
test: cd .. && make tests-ci-all-python
3131
duration: 20m

0 commit comments

Comments
 (0)