Moo Moo - 9 months ago 68
Javascript Question

Visual Studio Team Services / SonarQube: Converting a .trx/.coverage file to a LCOV?

I'm trying to convert the .coverage or the .trx file generated from running a Test Assemblies task in Team Services (was VSO) build manager into a LCOV file that's parseable by SonarQube so that javascript coverage results are reported.

Is there any preset/recommended way to do this? I figure I could just use a powershell script to call Chutzpah (as it's included as a nuget package) and convert the .trx to an LCOV.


Chutzpah is an open source JavaScript test runner which enables you to run unit tests using QUnit, Jasmine, Mocha, CoffeeScript and TypeScript.

You can use the transforms setting to specify which output transformers should run after testing is finished. Output test coverage data as LCOV file to C:\temp\lcov.dat:

    "Transforms": [
        { "Name": "lcov", "Path": "lcov.dat" }