Skip to content

Instantly share code, notes, and snippets.

@mjul
Created September 27, 2018 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjul/eea8aa0a3f017da821d5fb197412fee2 to your computer and use it in GitHub Desktop.
Save mjul/eea8aa0a3f017da821d5fb197412fee2 to your computer and use it in GitHub Desktop.
Fake (V5) build with xUnit 2 and inline Paket
#r "paket:
nuget Fake.DotNet.Cli
nuget Fake.IO.FileSystem
nuget Fake.Core.Target
nuget Fake.DotNet.MSBuild
nuget Fake.DotNet.NuGet
nuget Fake.DotNet.Testing.XUnit2 //"
#load ".fake/build.fsx/intellisense.fsx"
open System.IO
open Fake.DotNet
open Fake.Core
open Fake.IO
open Fake.IO.FileSystemOperators
open Fake.IO.Globbing.Operators
open Fake.Core.TargetOperators
open Fake.DotNet.Testing
let codeDir = "src"
Target.create "UnitTest" (fun _ ->
!! (codeDir @@ "/**/bin/*Tests.dll")
-- (codeDir @@ "**/obj/**")
-- (codeDir @@ "**/*IntegrationTests.dll")
|> XUnit2.run (fun p -> { p with HtmlOutputPath = Some (codeDir @@ "xunit.html") })
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment