mirror of https://github.com/sbt/sbt.git
Sort scripted tests
It is nice to have the scripted tests run in a deterministic order. I've noticed that on windows, they tend to run in sorted order but in a random order on posix platforms.
This commit is contained in:
parent
8c3f2a50f7
commit
9d3c807c7f
|
|
@ -536,8 +536,10 @@ class ScriptedRunner {
|
|||
baseDirectory: File,
|
||||
accept: ScriptedTest => Boolean,
|
||||
log: Logger,
|
||||
): Seq[ScriptedTest] =
|
||||
if (tests.isEmpty) listTests(baseDirectory, accept, log) else parseTests(tests)
|
||||
): Seq[ScriptedTest] = {
|
||||
val unsorted = if (tests.isEmpty) listTests(baseDirectory, accept, log) else parseTests(tests)
|
||||
unsorted.sortBy(t => (t.group, t.name))
|
||||
}
|
||||
|
||||
@deprecated("No longer used", "1.1.0")
|
||||
def listTests(baseDirectory: File, log: Logger): Seq[ScriptedTest] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue