cucumber/cucumber-jvm — pull request #544 by brasmusson (2013-06-17 13:26:16+00:00)
Title: Test case for the PrettyFormatter

Add a test case for the PrettyFormatter to verify that the pretty formatter aligns the location strings correct, when a scenario is executed with Cucumber-JVM.

This test case expose the well known IndexOutOfBoundsException in Cucumber-JVM 1.1.3. It also shows that when using the current snapshot of the Gherkin library (https://github.com/cucumber/gherkin/commit/74bb6875e34a31a6b967890f5c75926d0f0850d2) the pretty formatter still does not align the location strings correctly.

The test case is something of an acceptance test for resolving the miss match between the expectations of the pretty formatter in the Gherkin libarary and the formatter call sequence in Cucumber-JVM.