These are chat archives for etorreborre/specs2

30th
Nov 2016
Andrea Bessi
@Vincibean
Nov 30 2016 16:23
@etorreborre Hello Eric! Thanks for the help! The solution you proposed works correctly. Is there a way, however, to have the results list the outcome of each test contained in each Specification?

In other words, instead of having this outcome:

Results

  • Spec1
  • Spec2

Would it be possible to have the following one?

Results

  • Spec1
    • test1
  • Spec2
    • test2
Eric Torreborre
@etorreborre
Nov 30 2016 16:33
You can do something like this but you will not get a summary for each spec
class MasterSpec extends Specification with BeforeAll { def is =

  "parent spec".title ^ br ^
    Fragments.foreach(List(new Spec1, new Spec2)) { s =>
      s"Specification ${s.is.header.show}" ^ br ^
      s.is ^ br
    }

  def beforeAll = {println("initialize the system");()}

}
Edmondo Porcu
@edmondo1984
Nov 30 2016 16:50
mmmm @etorreborre this doesn't help much
I won't be able to undersyand which examples failed on my CI
ah no summary only