Skip to content

Instantly share code, notes, and snippets.

@djspiewak
Forked from etorreborre/print-examples.scala
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djspiewak/a9ad1e93f215f80a98cc to your computer and use it in GitHub Desktop.
Save djspiewak/a9ad1e93f215f80a98cc to your computer and use it in GitHub Desktop.
class TestSpec extends org.specs2.mutable.Specification {
sequential // this causes the printing to break
"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