This is a migrated thread and some comments may be shown as answers.

Code coverage using JustMockRunner and dotCover

5 Answers 184 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 17 May 2017, 02:14 AM

Hi,

I'm trying to generate a code coverage report using JetBrains dotCover and the JustMockRunner. I have the following batch file, which I plan to run on a schedule, which links dotCover, runs the coverage, and then unlinks dotCover.

1.start /wait "" "C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.Configuration.exe" /link "dotCover"
2."dotCover.exe" cover "C:\Temp\Settings.xml"
3.start /wait "" "C:\Program Files (x86)\Telerik\JustMock\Libraries\Telerik.JustMock.Configuration.exe" /unlink "dotCover"

 

The dotCover settings file has the following settings.

01.<?xml version="1.0" encoding="utf-8"?>
02.<AnalyseParams>
03.    <TargetExecutable>C:\JustMock\JustMockRunner.exe</TargetExecutable>
04.    <TargetArguments>"C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe" "C:\Temp\Release64\JustMock.Tests.dll" /noshadow /xml="C:\Temp\Coverage JustMock Test Results.xml"</TargetArguments>
05.    <Output>C:\Temp\Coverage Snapshot JustMock.dcvr</Output>
06.    <Scope>
07.        <ScopeEntry>C:\Temp\Release64\TestClass.dll</ScopeEntry>
08.    </Scope>
09.</AnalyseParams>

 

Everything seems to work correctly, with all tests passing, but I don't get any code coverage.

Have I missed something?

5 Answers, 1 is accepted

Sort by
0
Kamen Ivanov
Telerik team
answered on 19 May 2017, 07:41 AM
Hello Jeff,

By the detailed explanation that you have provided your setup looks correct.
We have a known issue regarding dotCover. Since version 2016.2 our integration is broken due to a change on their end. If you are using dotCover 2016.2 or higher then that should be the problem.

You could use 2016.1.2 or earlier to do the code coverage.

Regards,
Kamen Ivanov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dan
Top achievements
Rank 1
answered on 28 Aug 2017, 08:44 PM

Has this been fixed yet? I have updated to the latest versions on Justmock (2017.2.821.1) and dotcover (2017.2), but dotcover is still hanging on coverage analysis. 

0
Kamen Ivanov
Telerik team
answered on 31 Aug 2017, 01:13 PM
Hello Dan,

I'm sorry to tell you that this issue is not resolved yet.

Rather unfortunately, I cannot really commit to a deadline, so stay tuned.

Regards,
Kamen Ivanov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 05 Jun 2018, 01:22 PM

Hello,

The last post here was from August last year. Has there been any progress on this issue?  Is it resolved, or is there a deadline for resolving it?

 

Thanks,

Andrew

0
Mihail
Telerik team
answered on 05 Jun 2018, 03:49 PM
Hello Andrew,

The integration problem with dotCover was already been resolved with R1 2018 and of course, is included in the latest release as well. Feel free to give it a try and share your feedback.

Regards,
Mihail
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Kamen Ivanov
Telerik team
Dan
Top achievements
Rank 1
Andrew
Top achievements
Rank 1
Mihail
Telerik team
Share this question
or