Code coverage using JustMockRunner and dotCover

4 posts, 0 answers
  1. Jeff
    Jeff avatar
    1 posts
    Member since:
    Apr 2017

    Posted 16 May 2017 Link to this post

    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?

  2. Kamen Ivanov
    Admin
    Kamen Ivanov avatar
    80 posts

    Posted 19 May 2017 Link to this post

    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
  3. Dan
    Dan avatar
    8 posts
    Member since:
    Feb 2012

    Posted 28 Aug 2017 Link to this post

    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. 

  4. Kamen Ivanov
    Admin
    Kamen Ivanov avatar
    80 posts

    Posted 31 Aug 2017 Link to this post

    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
Back to Top