English 中文(简体)
TeamCity and NCover integration, exclude files/types just gives me errors
原标题:

I am trying to integrate NCover 2 into TeamCity 5.0.1, and since I have some files in the project that are out of my control, I d like to exclude those from the NCover statistics.

In the TeamCity build runner setup, I have an option for "Additional NCover arguments", and by looking at the page that describes NCover parameters, I added the following to this box:

//exclude-types "Markdown;Settings;Resources"

When running the teamcity buildstep, I get this error in my log, and the build fails:

NCover has determined that one of the paths in the
//h or //w commands ends with a backslash ().
Please remove or escape the backslash and run NCover again.

If I remove this setting, the error goes away.

Has anyone configured TeamCity and NCover 2 like this and can spot my mistake?

最佳回答

We had a similar problem with attribute exclusion when we triggered NCover 1.5.8 from NAnt. It was an issue with proper quotation of the arguments. We simply couldn t get it working although the args exactly complied to the NCover documentation. A workaround solved the problem for us: Passing arguments via a settings file

问题回答

the command you posted looks correct, check the rest of the teamcity build log to see the entire command that they re sending to ncover. It s possible that the base command they send + the command you ve entered is triggering the error message.





相关问题
TestDriven.net NCover problem

I cannot run NCover. I get the error: NCover couldn t create a coverage report I m running it via TestDriven.net. I am using MSTest and also have resharper 4.2 installed. There isnt a problem with ...

Gallio and MbUnit in NAnt

I am trying to use Gallio (v3.1)/MbUnit/NCover to run a unit test in my C# code, as part of the build process for my continuous integration system. I can get Gallio.Echo.exe to execute the tests and ...

How do I stop NCover from hijacking every .NET assembly?

I know that this, strictly speaking, is not a programming question, but I think the only people who can answer it are programmers. I ve never had this happen before, but on one workstation where I ...

NCover installation

I m installing NCover Complete trial version, and wondered if it s possible to install to a different folder and have NCover as part of the VCS? Otherwise the current version of NCover (v3.3.2) would ...

How do I fix a NCover "Duplicate method was added" error

Having performed some refactoring I am now finding that NCoverExplorer is unable to merge my test results. With NCover and NCoverExplorer v3.2.2 the merge appeared to work, but NCoverExplorer would ...

热门标签