Created
September 27, 2018 07:54
-
-
Save mjul/eea8aa0a3f017da821d5fb197412fee2 to your computer and use it in GitHub Desktop.
Fake (V5) build with xUnit 2 and inline Paket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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