Skip to content

Commit

Permalink
fix test code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Nov 1, 2019
1 parent 2e9e457 commit 8dc6c42
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/Fake.Core.UnitTests/Fake.DotNet.Testing.Coverlet.fs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ let tests =
ThresholdStat = Coverlet.ThresholdStat.Total
UseSourceLink = true
})
Expect.containsAll [
Expect.isTrue (props.Length > 0) "Result should contain some elements"
Expect.containsAll props [
"CollectCoverage", "true"
"CoverletOutput", "coverage.json"
"OutputFormat", "cobertura"
Expand All @@ -47,13 +48,14 @@ let tests =
"ThresholdType", "branch"
"ThresholdStat", "total"
"UseSourceLink", "true"
] props "expected proper MSBuild properties"
] "expected proper MSBuild properties"

testCase "Test that default properties are converted" <| fun _ ->
let props = getProps id
Expect.containsAll [
Expect.isTrue (props.Length > 0) "Result should contain some elements"
Expect.containsAll props [
"CollectCoverage", "true"
"CoverletOutput", "./"
"OutputFormat", "json"
] props "expected proper MSBuild properties"
] "expected proper MSBuild properties"
]

0 comments on commit 8dc6c42

Please sign in to comment.