This Question is Answered

11 Replies Last post: Mar 18, 2013 2:06 PM by Sergii Pryshchepa  
Sergii Pryshchepa Newbie 7 posts since
Feb 8, 2013
Currently Being Moderated

Feb 8, 2013 6:35 PM

Problem with generating report with console runner

Hi guys,

 

Can you help me a little? I am stucked with generating a report while using console runner. So:

I start the dotCover with

 

dotcover.exe a <path to my config.xml> /LogFile=DotCover.txt

(without<>)

 

config.xml looks like:

 

<?xml version="1.0" encoding="utf-8" ?>

<AnalyseParams>

<TargetExecutable>ClothAuthoringTool.exe</TargetExecutable>

<TargetArguments>/TestMode:Unit</TargetArguments>

<Output>CoverResults.xml</Output>

<ReportType>XML</ReportType>

    <Filters>

    <IncludeFilters>

        <FilterEntry>

            <ModuleMask>ClothAuthoringTool</ModuleMask>

        </FilterEntry>

    </IncludeFilters>

    </Filters>

    <AttributeFilters>

        <AttributeFilterEntry>ExcludeFromCodeCoverage</AttributeFilterEntry>

    </AttributeFilters>

</AnalyseParams>

 

All I need is to see the coverage results only for included assembly (there are 2 of them, I need only the ClothAuthoringTool), and I want to not to see all results for classes marked with ExcludeFromCodeCoverage attribute.

But they are still present in report!

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012
Currently Being Moderated
Feb 11, 2013 12:43 PM in response to: Sergii Pryshchepa
Re: Problem with generating report with console runner

Hello Sergii,

 

Please try to use the full attribute's name in the filter: System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute.

 

Best regards.

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012
Currently Being Moderated
Feb 13, 2013 7:56 PM in response to: Sergii Pryshchepa
Re: Problem with generating report with console runner

Hello Sergii,

 

In dotCover 2.0 there was a problem with attribute-filters: you couldn't use them on properties and events (see http://youtrack.jetbrains.com/issue/DCVR-4151). The problem was fixed in dotCover 2.1.

If it isn't your case, could you please provide a bit more details about your situation? Thanks in advance.

 

Regards.

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012
Currently Being Moderated
Feb 22, 2013 4:51 PM in response to: Sergii Pryshchepa
Re: Problem with generating report with console runner

Hello Sergii,

 

Sorry for the delay!

Could you please clarify a bit what your application does when it's running with /TestMode:Unit key? Are you sure that it behaves in the same way on the server as on the local machine?

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012
Currently Being Moderated
Feb 22, 2013 6:04 PM in response to: Sergii Pryshchepa
Re: Problem with generating report with console runner

Hi Sergii,

 

Thank you very much for the information. We will investigate the issue.

Best regards.

Ekaterina Solovova JetBrains 27 posts since
Jun 26, 2012
Currently Being Moderated
Mar 16, 2013 7:57 PM in response to: Sergii Pryshchepa
Re: Problem with generating report with console runner

Hello Sergii,

 

I'm terribly sorry for the delay!

Please try to use "/noshadow" key in the NUnit.ConsoleRunner.Runner.Main(...). I guess that the cause of the problem is that on your server machine NUnit makes a shadow copy of your application when running tests, but doesn't copy pdb-file with it.

 

Please let me know whether it helps. Best regards.

More Like This

  • Retrieving data ...