These are chat archives for etorreborre/specs2

31st
Jul 2018
vito-c
@vito-c
Jul 31 2018 23:18
@etorreborre I got the same results with below:
class TestSpec extends org.specs2.mutable.Specification {
  val r = scala.util.Random
  (1 to 10).foreach { i =>
    "ex"+i >> { val j =r.nextInt(5000);  Thread.sleep(j); println(i); ok }
  }
}
1
2
3
4
5
6
7
8
9
10
[info] TestSpec
[info]
[info] + ex1
[info] + ex2
[info] + ex3
[info] + ex4
[info] + ex5
[info] + ex6
[info] + ex7
[info] + ex8
[info] + ex9
[info] + ex10