Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6b3285b7
Commit
6b3285b7
authored
Jul 01, 2021
by
Brad Davidson
Committed by
Brad Davidson
Jul 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coverage reporting to include all packages, not just those with tests
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
c8331835
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
unitcoverage.yaml
.github/workflows/unitcoverage.yaml
+1
-1
test-unit
scripts/test-unit
+1
-1
No files found.
.github/workflows/unitcoverage.yaml
View file @
6b3285b7
...
...
@@ -19,7 +19,7 @@ jobs:
fetch-depth
:
1
-
name
:
Run Unit Tests
run
:
|
go test
./pkg/... -coverprofile coverage.out
go test
-coverpkg=./... -covermode=atomic -coverprofile=coverage.out ./pkg/...
go tool cover -func coverage.out
-
name
:
On Failure, Launch Debug Session
if
:
${{ failure() }}
...
...
scripts/test-unit
View file @
6b3285b7
#!/bin/bash
go
test
-cover
-v
./pkg/...
go
test
-cover
-
coverpkg
=
./...
-covermode
=
atomic
-
v
./pkg/...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment