简体   繁体   中英

How to Setup Chuztpah with TFS 2017

I'm trying to include code coverage report into TFS build for my C#/TypeScript project. So I did the same as this article . But I'm getting TFS build error because report file was not found because there is no build task to create that report.

So my question is How to setup TFS build to generate a report from chutzpah.json file?

You can install the Chutzpah NuGet package to your project using the Package Manager Console . Follow the steps in below article to install and configure the Chutzpah:

Testing your JavaScript using Chutzpah and Visual Studio Team Services

Make sure you correctly configured the “Test” task:

  1. Set the test assembly to match the JavaScript test naming convention.
  2. Make sure that point to the Chutzpah test adapter, the NuGet package that you installed earlier.

Also please note that “ Publish Code Coverage Results ” task only supports to show the code coverage result published with " JaCoCo " or " Cobertura " format for now. The " Summary file ", you need to give the path of your summary file. You could give a UNC path or a local path.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM