Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7e25b4dc
Commit
7e25b4dc
authored
Nov 14, 2020
by
Hannes Rosenögger
Committed by
Marcel Amirault
Nov 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Document that the Java examples for Testcoverage visualization also work for Kotlin
parent
e8824504
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
doc/user/project/merge_requests/test_coverage_visualization.md
...ser/project/merge_requests/test_coverage_visualization.md
+5
-5
No files found.
doc/user/project/merge_requests/test_coverage_visualization.md
View file @
7e25b4dc
...
...
@@ -73,11 +73,11 @@ test:
cobertura
:
coverage/cobertura-coverage.xml
```
### Java examples
### Java
and Kotlin
examples
#### Maven example
The following
[
`gitlab-ci.yml`
](
../../../ci/yaml/README.md
)
example for Java uses
[
Maven
](
https://maven.apache.org/
)
The following
[
`gitlab-ci.yml`
](
../../../ci/yaml/README.md
)
example for Java
or Kotlin
uses
[
Maven
](
https://maven.apache.org/
)
to build the project and
[
Jacoco
](
https://www.eclemma.org/jacoco/
)
coverage-tooling to
generate the coverage artifact.
You can check the
[
Docker image configuration and scripts
](
https://gitlab.com/haynes/jacoco2cobertura
)
if you want to build your own image.
...
...
@@ -101,7 +101,7 @@ coverage-jdk11:
# The `visualize` stage does not exist by default.
# Please define it first, or chose an existing stage like `deploy`.
stage
:
visualize
image
:
haynes/jacoco2cobertura:1.0.
3
image
:
haynes/jacoco2cobertura:1.0.
4
script
:
# convert report from jacoco to cobertura
-
'
python
/opt/cover2cover.py
target/site/jacoco/jacoco.xml
src/main/java
>
target/site/cobertura.xml'
...
...
@@ -117,7 +117,7 @@ coverage-jdk11:
#### Gradle example
The following
[
`gitlab-ci.yml`
](
../../../ci/yaml/README.md
)
example for Java uses
[
Gradle
](
https://gradle.org/
)
The following
[
`gitlab-ci.yml`
](
../../../ci/yaml/README.md
)
example for Java
or Kotlin
uses
[
Gradle
](
https://gradle.org/
)
to build the project and
[
Jacoco
](
https://www.eclemma.org/jacoco/
)
coverage-tooling to
generate the coverage artifact.
You can check the
[
Docker image configuration and scripts
](
https://gitlab.com/haynes/jacoco2cobertura
)
if you want to build your own image.
...
...
@@ -141,7 +141,7 @@ coverage-jdk11:
# The `visualize` stage does not exist by default.
# Please define it first, or chose an existing stage like `deploy`.
stage
:
visualize
image
:
haynes/jacoco2cobertura:1.0.
3
image
:
haynes/jacoco2cobertura:1.0.
4
script
:
# convert report from jacoco to cobertura
-
'
python
/opt/cover2cover.py
build/jacoco/jacoco.xml
src/main/java
>
build/cobertura.xml'
...
...
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