Test‐xUnit - lsgroi/Pask.Test GitHub Wiki

Synopsis

Run xUnit.net tests identified by having a dependency on the test framework DLL.


Dependencies

  • xUnit.net [Runner: Console]
    Console runner for the xUnit.net framework

Properties

  • TestNamePattern - regex pattern to identify tests to run from the solution
    Default to Tests?$
  • TestFromArtifact - run tests from the tests artifact
    Default to $false
  • TestsArtifactName - name of the tests artifact
    Default to $ProjectName.Tests
  • TestsArtifactFullPath - the full path of the tests artifact
    Default to .build\output\$TestsArtifactName
  • xUnitTrait - only run tests with matching name/value traits
    e.g. @("name=value","name=value")
    Optional
  • xUnitNoTrait - only run tests with matching name/value traits
    e.g. @("name=value","name=value")
    Optional
  • xUnitParallel - set parallelization based on option
    See Parallelism in Console Runner
    Optional
  • xUnitMaxThreads - maximum thread count for collection parallelization
    See Parallelism in Console Runner
    Optional