Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Enable source code browsing #1

Closed
tempora-mutantur opened this issue Oct 24, 2019 · 0 comments
Closed

Enable source code browsing #1

tempora-mutantur opened this issue Oct 24, 2019 · 0 comments
Assignees

Comments

@tempora-mutantur
Copy link

When we enabling source file browsing, Code Coverage API plugin will add paint information to CoverageResult and copy and render these source files to the build directory.

If we want to show those source files on the result page, we need to invoke setRelativeSourcePath to set the mapped source file for the CoverageResult. In our case, we might need to add the source file path as an attribute to Class element and set it in our parser

See https://github.com/jenkinsci/code-coverage-api-plugin/blob/dev/src/main/java/io/jenkins/plugins/coverage/adapter/parser/JavaCoverageParser.java#L74 as an example.

@tempora-mutantur tempora-mutantur self-assigned this Dec 10, 2019
tempora-mutantur added a commit that referenced this issue Dec 25, 2019
Publish source files for methods as Opencover saves file paths for them.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant