ProjectScaffold


Running tests

By default ProjectScaffold uses NUnit as test framework. You can run the test suite by calling:

1: 
$ build RunTests

Changing the test framework

FAKE supports many different test frameworks including xUnit, Machine.Specifications and many more.

If you wish to use a different test framework, look for the RunTest target in the build.fsx file:

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
Target "RunTests" (fun _ ->
    !! testAssemblies
    |> NUnit (fun p ->
        { p with
            DisableShadowCopy = true
            TimeOut = TimeSpan.FromMinutes 20.
            OutputFile = "TestResults.xml" })
)

You will also ant to change the testing framework in the paket.dependencies file and run the update process.

More details regarding these aspects can be found in the FAKE and Paket documentation sites.

Fork me on GitHub