Based on the documentation, I want to report the line code coverage percentage to teamcity (I am not using dotcover but a custom tool). So I emit this into the stdout from my build script:
##teamcity[buildStatisticValue key='CodeCoverageL' value='14.8']
Also, I defined a failure condition that should fail the build if this metrics in the last successful build is higher than it is in the current one.
If I add that failure condition I get this at the end of the build log:
Cannot calculate build metric 'percentage of line coverage' - no value
What am I doing wrong?