gulp-dotcover-runner

    0.1.5 • Public • Published

    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

    Install

    npm i gulp-dotcover-runner

    DownloadsWeekly Downloads

    266

    Version

    0.1.5

    License

    MIT

    Last publish

    Collaborators

    • avatar