Created
December 9, 2014 20:47
-
-
Save etorreborre/bab962e3f4a1ba4f173b to your computer and use it in GitHub Desktop.
Print examples as you go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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