Skip to content

Commit

Permalink
Fix the tests -- is it worth merging this?
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Dec 1, 2021
1 parent 2dc4d98 commit 98c61ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AltCover.Tests/Expecto.fs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ module ExpectoTestManifest =
Tests.AltCoverRunnerTests.ThresholdViolationShouldBeReported,
"Runner.ThresholdViolationShouldBeReported"
Tests.AltCoverRunnerTests.TryGetValueHandlesNull, "Runner.TryGetValueHandlesNull"
Tests.AltCoverRunnerTests.CanExtractStringArray, "Runner.CanExtractStringArray"
Tests.AltCoverTests.ReportFileShouldBeCorrectlySuffixed,
"Tests.ReportFileShouldBeCorrectlySuffixed"
Tests.AltCoverTests.CanSwitchSampling, "Tests.CanSwitchSampling"
Expand Down
6 changes: 5 additions & 1 deletion AltCover.Tests/Runner.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6587,7 +6587,11 @@ module AltCoverRunnerTests =
assembly.MainModule.GetType("Tests.AltCoverRunnerTests")

let m = Runner.J.getMethod instance "someData"
let data = Runner.J.getStrings m

let data =
Runner.J.getStrings m
// allow for instrumentation injection
|> Seq.filter (fun x -> someData () |> Seq.exists (fun s -> s = x))

someData ()
|> Seq.zip data
Expand Down

0 comments on commit 98c61ec

Please sign in to comment.