Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to update file path in the report #103

Open
msainath4 opened this issue Oct 7, 2020 · 1 comment
Open

Is it possible to update file path in the report #103

msainath4 opened this issue Oct 7, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@msainath4
Copy link

Hi - Is there an option to update file path in the report ?

As a part of the drop of modules on the SonarQube side (https://jira.sonarsource.com/browse/MMF-365) in SonarQube v7.6, the generic coverage/test reports sensors were changed to be global sensors (https://jira.sonarsource.com/browse/SONAR-11530), meaning they only run once for the project (and not for each module). To address this, we need to provide the paths to all generic execution reports to sonar.testExecutionReportPaths at the root level of the project. In the case of a multi-module project, we have the generic test report using this karma-sonarqube-reporter being generated inside a javascript module and the file path of the test files inside the results xml file is all relative to that module. This does not work.
These test file paths need to be relative to the root folder or absolute file paths, otherwise the generic test execution sensor running at the root level is unable to recognize these files.

@fadc80 fadc80 added the enhancement New feature or request label Oct 8, 2020
@fadc80
Copy link
Owner

fadc80 commented Oct 8, 2020

Hi @msainath4 thank for your question. Unfortunately, the current version doesn't support customizing test paths. Do you think a callback function could help you to accomplish that. We could use it to redefine the test path on the fly. If you think so, I can help you on implementing this new feature and sending a PR.

peteyoungs pushed a commit to peteyoungs/karma-sonarqube-reporter that referenced this issue Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants