Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
costaQuanta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
costaQuanta
Commits
437fdb0b
Commit
437fdb0b
authored
1 month ago
by
Neil-Jocelyn Schark
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Add code coverage checks and badges"
parent
06916ba9
No related branches found
No related tags found
1 merge request
!23
Resolve "Add code coverage checks and badges"
Pipeline
#270379
passed
1 month ago
Stage: prepare
Stage: build
Stage: lint
Stage: test
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
README.md
+3
-0
3 additions, 0 deletions
README.md
justfile
+4
-1
4 additions, 1 deletion
justfile
with
19 additions
and
2 deletions
.gitignore
+
2
−
0
View file @
437fdb0b
gen/*
bin/*
cover.profile
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
10
−
1
View file @
437fdb0b
...
...
@@ -46,8 +46,17 @@ test-go:
stage
:
test
image
:
name
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:${GOLANG_VERSION}
before_script
:
-
go install github.com/t-yuki/gocover-cobertura@latest
script
:
-
go test ./...
-
go test ./... -coverprofile=cover.profile && go tool cover -func cover.profile
-
gocover-cobertura < cover.profile > coverage.xml
coverage
:
/total:\s+\(statements\)\s+\d+.\d+%/
artifacts
:
reports
:
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
needs
:
-
generate-api
...
...
This diff is collapsed.
Click to expand it.
README.md
+
3
−
0
View file @
437fdb0b
# Costaquanta


This repository is used for development and testing of QKDN software.
It's use-case is research and development only.
If you are interested in production grade QKDN software, please feel free to contact us.
...
...
This diff is collapsed.
Click to expand it.
justfile
+
4
−
1
View file @
437fdb0b
...
...
@@ -11,7 +11,10 @@ build-api:
buf generate
test:
go test ./...
go test -coverprofile=cover.profile ./...
code-coverage: test
go tool cover -func cover.profile
lint:
docker run --rm -t -v $(pwd):/app -w /app \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment