Building and running FsCheck.Xunit tests in an F# ionide project

261 Views Asked by At

I created a standalone console application using the yo fsharp generator. The github repo concerning this particular question is here: https://github.com/KurtRMueller/PascalsTriangleKata.

I'd like to build and run some basic FsCheck.Xunit tests. I'm aware that I need to add some targets to FAKE's build.fsx, but as I'm quite new to .net and the C#/F# ecosystem, I don't know how to do that.

The example from the FAKE example page is as follows:

// define test dlls
let testDlls = !! (testDir + "/Test.*.dll")

Target "xUnitTest" (fun _ ->
    testDlls
        |> xUnit (fun p ->
             {p with
                ShadowCopy = false;
                HtmlOutput = true;
                XmlOutput = true;
                OutputDir = testDir })
)

I'm not quite sure how to build the these Test dlls.

Any help is appreciated. Thanks.

0

There are 0 best solutions below