Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

SpecsRemovement

Contains functions which allow to remove side-by-side specs during the build.

Functions and values

Function or valueDescription
AllNUnitReferences elementName s
Signature: elementName:'?10931 -> s:string -> bool
Type parameters: '?10931

All references to nunit.*.dlls

AllSpecAndTestDataFiles elementName s
Signature: elementName:string -> s:string -> bool

All Spec.cs or Spec.fs files and all files containing TestData

AllSpecFiles elementName s
Signature: elementName:'?10933 -> s:string -> bool
Type parameters: '?10933

All Spec.cs or Spec.fs files

Nothing arg1 arg2
Signature: '?10936 -> '?10937 -> bool
Type parameters: '?10936, '?10937

A Convention which matches nothing

RemoveAllNUnitReferences(...)
Signature: projectFileName:string -> string

Removes all NUnit references from a project.

RemoveAllSpecAndTestDataFiles(...)
Signature: projectFileName:string -> string

Removes all spec and test data references from a project.

RemoveTestsFromProject(...)
Signature: assemblyFilterF:(string -> string -> bool) -> fileFilterF:(string -> string -> bool) -> projectFileName:string -> string

Removes test data and test files from a given MSBuild project and recursivly from all MSBuild project dependencies.

Parameters

  • assemblyFilterF - A filter function for assembly references.
  • fileFilterF - A filter function for files in a project.
  • projectFileName - The MSBuild project to start.