How to

Question See
How to execute an action before all the examples? Contexts
How to execute an action before each example? Contexts
Can I create and reuse a Specification “template”? Specification template
How can I pass some data to each example? Contexts
Can I add more information to my results for easier diagnostic? Expectation description
Is it possible to execute a Specification sequentially? Execution
How to mark an example as pending until it is fixed? Pending until fixed
Can I simply mark a block of code as pending? Standard results
Is there a way to run only one example? Selection
I would like to display the execution time of each example Console output
Can I use a for loop to create examples or results? For loops
How can I tag examples? Selection
Can I skip examples? Skip examples
Is it possible to modify the behaviour of a Specification with command-line arguments? Use command-line arguments
How to capture snippets of code and add them to my Specification? Capture snippets
Can I create an HTML index of all the specifications? Html output
Is it possible to execute a Specification in a random order? Random execution
How can I easily print expressions to the console? Debug statements
Can specs2 create a JUnit xml file for a continuous integration server? JUnit XML output
Is it possible to reduce the number of implicits in scope and improve compilation times? Lightweight specs
How can I collect execution data? Print execution data
Can I display some data when an example succeeds? Print execution data
Can I create an example description spanning several lines? Multiline descriptions
How to timeout examples? Timeout examples
Can I use parts of an example description in the example itself? Example description
Add my own keywords (other than ‘>>’, ‘should’, ‘can’) to a mutable specification Add keywords
Help, I need to troubleshoot my issues! Troubleshooting
How can I integrate my own IO type to specifications? IO Integration