TFS 2013 does not publish .coverage file on server

I am developing a quality workflow with tfs 2013 and SonarQube 4.5.1. Everything works just fine, except for one thing: I cannot integrate code coverage data from TFS into SonarQube. The problem is that SonarQube needs .trx or .cover files to work. However, my TFS Build does not publish these files. What I did: I created the CodeCoverage.runsettings file, which I compared to my assembly with the "User defined" type (it does not work with CodeCoverageEnabled either). In the CodeCoverage.runsettings file, I wrote the following xml tag:

<RunConfiguration> <ResultsDirectory>.\TestResults</ResultsDirectory> </RunConfiguration> 

in the hope that he will write all the result files in the same directory. The line does create result directories, but not one of them contains .coverage files. However, at the end of the build, on the results page, I can upload the .coverage file. Do you know how I can get this .coverage file to be written on the server? When I start the analysis of my local configuration, a file is created in the test results directory.

+5
source share

Source: https://habr.com/ru/post/1208680/


All Articles