andre.pany
(Andre Pany)
February 24, 2020, 6:54am
#1
Dear support,
in our project we are using the D Programming Language. While we are able to to upload generic issue data for the D project, it fails for generic test coverage.
Although there is already another issue and bug reports, I was asked by @ganncamp to create another issue to purse this bug:
Hi André,
We have no plans for 2020 to add additional languages. Beyond that… we’ll see.
Regarding unknown languages in generic reports, I’m not aware that this is on a short list. OTOH, I also don’t know that it’s not. If you’d like to pursue this, please create another thread to share your use case.
Ann
[SONAR-12015] Allow unknown languages in generic test coverage reports - SonarSource Allow unknown languages in generic test coverage reports
Please enable generic test coverage for the D programming language similar to generic issues.
Kind regards
André
andre.pany
(Andre Pany)
February 24, 2020, 8:12am
#2
Really stupid workaround for now:
I create for every D file a wrapper Python file, which has the D coding as comment and looks like this:
# import std.stdio;
# void main()
# {
a=0 # writeln("Edit source/app.d to start your project.");
# }
From the D coverage files *.lst I create cobertura xml files with python semantics:
<?xml version="1.0" ?>
<coverage branch-rate="0" branches-covered="0" branches-valid="0" complexity="0" line-rate="1" lines-covered="1" lines-valid="1" timestamp="1581936579347" version="5.0">
<sources>
<source>/media/jenkinsworkspace2/workspace/Newton Pipelines/digital-twin-framework/master/py</source>
</sources>
<packages>
<package branch-rate="0" complexity="0" line-rate="1" name="digitaltwin">
<classes>
<class branch-rate="0" complexity="0" filename="source/app.py" line-rate="1" name="app.py">
<methods/>
<lines>
<line hits="1" number="5"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>
Therefore I have the code and the coverage in SonarQube with the drawback of having it listed as
python project.