Skip to content

Commit fb1e483

Browse files
thibaultfalquetfalque.ext
andauthored
Replace the name of the report path property (#39)
* XUnit report * updates README * updates DOC * adds unit tests * more tests * license header * sonar.test.reportPath into sonar.rust.test.reportPath #37 * fixes a breaking test #37 * sonar.rust.test.reportPath -> community.rust.test.reportPath Co-authored-by: tfalque.ext <[email protected]>
1 parent 11ccba8 commit fb1e483

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

DOC.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ This Community Rust plugin doesn't run your tests or generate tests reports for
7777

7878
Currently, only `junit report` formats are supported :
7979

80-
Insert a parameter `sonar.rust.test.reportPath` into you `sonar-project.properties` file. As an example, one of such tool
80+
Insert a parameter `community.rust.test.reportPath` into you `sonar-project.properties` file. As an example, one of such tool
81+
8182
for Rust than converts `cargo test` report to `junit report` is [cargo2junit](https://crates.io/crates/cargo2junit).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set analysis parameter `community.rust.clippy.reportPaths=<CLIPPY REPORT FILE>`
2323

2424
* Optionally import tests measures (`junit` report)
2525

26-
use `sonar.rust.test.reportPath`
26+
use `community.rust.test.reportPath`
2727

2828
* Optionally import coverage measures
2929

community-rust-plugin/src/main/java/org/elegoff/plugins/communityrust/xunit/XUnitSensor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141

4242
public class XUnitSensor implements Sensor {
43-
public static final String REPORT_PATH_KEY = "sonar.rust.test.reportPath";
43+
public static final String REPORT_PATH_KEY = "community.rust.test.reportPath";
4444
public static final String DEFAULT_REPORT_PATH = "rust-test.xml";
4545
private static final Logger LOG = Loggers.get(XUnitSensor.class);
4646

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<developer>
3939
<id>thibaultfalque</id>
4040
<name>Thibault Falque</name>
41-
<email>thibault.falque@gmail.com</email>
41+
<email>thibault.falque@exakis-nelite.com</email>
4242
</developer>
4343
</developers>
4444

0 commit comments

Comments
 (0)