Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
3ed781ad
Commit
3ed781ad
authored
2 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Start playing around with test coverage
parent
c7788d20
Branches
test-coverage
No related tags found
No related merge requests found
Pipeline
#10291
passed
2 years ago
Stage: build
Stage: test
Stage: check
Stage: smoketest
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-1
3 additions, 1 deletion
.gitlab-ci.yml
theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.java-conventions.gradle
+13
-0
13 additions, 0 deletions
...ildSrc/src/main/groovy/theodolite.java-conventions.gradle
with
16 additions
and
1 deletion
.gitlab-ci.yml
+
3
−
1
View file @
3ed781ad
...
@@ -204,12 +204,14 @@ test-benchmarks:
...
@@ -204,12 +204,14 @@ test-benchmarks:
extends
:
.benchmarks
extends
:
.benchmarks
needs
:
needs
:
-
build-benchmarks
-
build-benchmarks
script
:
./gradlew test --continue
script
:
./gradlew test
jacocoTestReport
--continue
artifacts
:
artifacts
:
when
:
always
when
:
always
reports
:
reports
:
junit
:
junit
:
-
"
theodolite-benchmarks/**/build/test-results/test/TEST-*.xml"
-
"
theodolite-benchmarks/**/build/test-results/test/TEST-*.xml"
paths
:
-
build/jacoco/jacoco.xml
checkstyle-benchmarks
:
checkstyle-benchmarks
:
stage
:
check
stage
:
check
...
...
This diff is collapsed.
Click to expand it.
theodolite-benchmarks/buildSrc/src/main/groovy/theodolite.java-conventions.gradle
+
13
−
0
View file @
3ed781ad
plugins
{
plugins
{
id
'java'
id
'java'
id
'jacoco'
id
'checkstyle'
id
'checkstyle'
id
'pmd'
id
'pmd'
...
@@ -12,6 +13,18 @@ java {
...
@@ -12,6 +13,18 @@ java {
targetCompatibility
=
JavaVersion
.
VERSION_11
targetCompatibility
=
JavaVersion
.
VERSION_11
}
}
test
{
finalizedBy
jacocoTestReport
// report is always generated after tests run
}
jacocoTestReport
{
dependsOn
test
// tests are required to run before generating the report
reports
{
xml
.
enabled
true
html
.
enabled
true
}
}
// Per default XML reports for SpotBugs are generated
// Per default XML reports for SpotBugs are generated
// Include this to generate HTML reports
// Include this to generate HTML reports
tasks
.
withType
(
com
.
github
.
spotbugs
.
snom
.
SpotBugsTask
)
{
tasks
.
withType
(
com
.
github
.
spotbugs
.
snom
.
SpotBugsTask
)
{
...
...
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