0.1.5 • Published 7 years ago

gulp-dotcover-runner v0.1.5

Weekly downloads
240
License
MIT
Repository
github
Last release
7 years ago

gulp-dotcover-runner

gulp runner for JetBrains' dotCover. Work in progress, but does work...

Installation

npm install --save-dev gulp-dotcover-runner

Usage

var gulp = require('gulp'),
    dotcover = require('gulp-dotcover-runner');

gulp.task('test', function () {
  return gulp
    .src([ '**/*.Test.dll' ], { read: false })
    .pipe(dotcover({
      executable: "./tools/dotCover/dotCover.exe",
      teamcity: true,
      target: {
        executable: "./tools/xunit/xunit.console.exe",
        workingDirectory: ".",
        arguments: {
          nologo: true,
          output: "tests.xml",
        },
        includeFilter: [
          "module=*",
          "type=*",
          "function=*"
        ],
        excludeFilter: [
          "Some.Assembly.To.Ignore",
          "function=*InvestigatoryTest"
        ],
        attributeFilters: [
          "System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute",
          "Lindorff.Testing.ExcludeFromCodeCoverageAttribute"
        ],
        output: "coverage.xml"
      }
    }));
});

To Do

  • Tests!
  • Support target arguments (currently just sending the assembly list)
  • Support additional dotCover options
    • TargetExecutable
    • TargetArguments
    • TargetWorkingDir
    • Output
    • TempDir
    • InheritConsole - not sure if we will expose this at all
    • AnalyseTargetArguments
    • Scope
    • Filters
    • AttributeFilters
    • DisableDefaultFilters
    • SymbolSearchPaths
    • AllowSymbolServerAccess
    • ReturnTargetExitCode
    • ProcessFilters
    • LogFile
  • Improve this readme
0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago