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

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

Package Sidebar

Install

npm i gulp-dotcover-runner

Weekly Downloads

89

Version

0.1.5

License

MIT

Last publish

Collaborators

  • pondidum