Skip to content

Commit 109d9f7

Browse files
committed
Remove redundant test sorting
1 parent 9587116 commit 109d9f7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/FSharpy.TaskSeq.Test/AssemblyInfo.fs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ namespace TaskSeq.Tests
22

33
open System.Runtime.CompilerServices
44

5+
// this prevents an XUnit bug to break over itself on CI
6+
// tests themselves can be run in parallel just fine.
57
[<assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)>]
6-
[<assembly: Xunit.TestCaseOrderer("FSharpy.Tests.AlphabeticalOrderer", "FSharpy.TaskSeq.Test")>]
78

89
do ()

src/FSharpy.TaskSeq.Test/Nunit.Extensions.fs

-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ open FsToolkit.ErrorHandling
1010
open Xunit
1111
open Xunit.Sdk
1212

13-
type AlphabeticalOrderer() =
14-
interface ITestCaseOrderer with
15-
override this.OrderTestCases(testCases) =
16-
testCases
17-
|> Seq.sortBy (fun testCase ->
18-
// sorting (or getting) the type fails
19-
// and as soon as this method fails, no tests are discovered
20-
testCase.TestMethod.Method.Name)
21-
2213

2314
[<AutoOpen>]
2415
module ExtraCustomMatchers =

0 commit comments

Comments
 (0)