-
Notifications
You must be signed in to change notification settings - Fork 363
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
NUnit support #742
NUnit support #742
Conversation
@Bertk maybe you can test if the MSTest part is still working for you? I had to change the logic of the unit tests (isRoot true/false). Looking to https://github.com/SonarSource/sonar-dotnet-tests-library/blob/master/src/main/java/org/sonar/plugins/dotnet/tests/UnitTestResultsImportSensor.java analyze V1.2 is only working this way. |
I will test it tomorrow but my test environment changed and the MS-tests are somehow limited. |
@guwirth i can test also with our c++/cli. |
There is still on feature missing which aggregates test results from multiple sources e.g. xunit (nunit, gtest) and MS-test similar to https://github.com/SonarSource/sonar-dotnet-tests-library/blob/master/src/main/java/org/sonar/plugins/dotnet/tests/UnitTestResultsAggregator.java
And we have now:
|
Indeed this was what I wanted to test, so we don't have the possibility to On Tue, Jan 5, 2016, 17:59 Bert [email protected] wrote:
|
@Bertk why do we have to aggregate the results? Thought SQ is doing this? |
The values for the metric is set to zero (see CxxXunitSensor simpleMode) and without aggregation for the sensor results only the results of last sensor for the project will be uploaded to SQ.
|
Ok what I understand:
Gotcha? |
Exactly 👍 |
there are a few more things i notice, if 2 plugins import tests it will fail with measure already added. see this: https://github.com/SonarSource/sonar-dotnet-tests-library/pull/14 the question here seems that core does not support more than one language plugin importing reports. if a single language is involved, then the aggregation should be ok. but i see all this in need of support from core, or at least a explanation how this should work |
Wrote a comment in the SQ newsgroup: https://groups.google.com/forum/#!topic/sonarqube/LgC3sqcdx4A |
Limitations has to be documented. |
update sonar-dotnet-tests-library to 1.2 use "sonar.cxx.nunit.reportsPaths" for NUnit reports rename derived classes from MSTestXxx to CxxUnitTestXxx clean-up folder structure (tests/xunit and tests/dotnet) close #722
update sonar-dotnet-tests-library to 1.2
use "sonar.cxx.nunit.reportsPaths" for NUnit reports
rename derived classes from MSTestXxx to CxxUnitTestXxx
clean-up folder structure (xunit => tests/xunit and tests/dotnet)
close #722