NCover Matcher

Article ID:360033193991
1 minute readKnowledge base
push (@::gMatchers,
#NCover.Console v1.5.8 - Code Coverage Analysis for .NET - https://ncover.org
#Copyright (c) 2004-2006 Peter Waldschmidt
#
#
#Command: \\ms\dist\msdotnet\PROJ\nunit\2.4.1\assemblies\nunit-console.exe
#Command Args: "MSDotNet.CafGUI.TestLauncher.dll"
#Working Directory:
#Assemblies:
#Coverage Xml: Coverage.Xml
#Coverage Log: Coverage.Log
#
#Waiting for profiled application to connect...Connected
#Configuring Profiler...
#******************* Program Output *******************
  {
   id =>        "ncover-startup",
   pattern =>          q{NCover.Console (.*) - Code},
   action =>           q{diagnostic("NCover: version $1", "info", 0, forwardTo(q{\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Program Output}) - 1);},
  },
#Coverage Xml: Coverage.Xml
  {
   id =>        "ncover-getxml-link",
   pattern =>          q{Coverage Xml: (.*)},
   action =>           q{setProperty("/myJob/report-urls/$1", "workspaceFile.php?jobStepId=" . $::gStepId . "&fileName=" . $1);},
  },
  {
   id =>        "ncover-getlog-link",
   pattern =>          q{Coverage Log: (.*)},
   action =>           q{my $jobId = $ENV{COMMANDER_JOBID}; setProperty("/myJob/report-urls/$1", "jobReport.php?jobId=" . $jobId . "&report=" . $1);},
  },
);
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.