These are chat archives for etorreborre/specs2

11th
Jan 2018
Edmondo Porcu
@edmondo1984
Jan 11 2018 13:36
Hello, I am trying to execute my tests in a specific order using sbt, however the specs2 sbt runner seems to ignore it
Eric Torreborre
@etorreborre
Jan 11 2018 13:36
how do you specify the order?
Edmondo Porcu
@edmondo1984
Jan 11 2018 13:36

  testGrouping <<= definedTests in Test map { groupTestsAndOrder }

  def groupTestsAndOrder(tests:Seq[TestDefinition]) = {
    val (before,after) = tests.partition(_.name.contains("MessageSpec"))
    import Tests._
    val orderedTests = before ++ after
    Seq(new Group("All Tests", tests = orderedTests, runPolicy = InProcess ))
  }
Eric Torreborre
@etorreborre
Jan 11 2018 13:45
Unfortunately my sbt-fu is not good enough to help you here
Edmondo Porcu
@edmondo1984
Jan 11 2018 13:56
can you point me towards the test runner
in specs2 repo?
Edmondo Porcu
@edmondo1984
Jan 11 2018 13:58
uhm where do you read the tests to be run?
Eric Torreborre
@etorreborre
Jan 11 2018 14:58
Each class is being passed in a TaskDef
Edmondo Porcu
@edmondo1984
Jan 11 2018 16:35
right so it looks like SBT is not passing the right order
Edmondo Porcu
@edmondo1984
Jan 11 2018 17:28
@etorreborre I cannot put a breakpoint
on the point of the runner invoked by st
bt
any hint?