Skip to content

Instantly share code, notes, and snippets.

@etorreborre
Created December 9, 2014 20:47
Show Gist options
  • Save etorreborre/bab962e3f4a1ba4f173b to your computer and use it in GitHub Desktop.
Save etorreborre/bab962e3f4a1ba4f173b to your computer and use it in GitHub Desktop.
Print examples as you go
class TestSpec extends org.specs2.mutable.Specification {
"many tests" should {
(1 to 1000).foreach { i =>
"example "+i >> {
("example "+i).pp
Thread.sleep((math.random*100).toLong)
ok
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment