Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Json Formatter in 1.1.3 giving Array Out of Bounds exception #476
When I run a test with a Before Hook, I am getting an Array out of Bounds exception.
The same feature and hook worked with Cucumber JVM 1.1.1 and Cucumber JVM 1.1.2
When I remove the json format from the scenario, the scenario runs.
I will try to create a test tonight.
I noticed that the commit you mentioned seemed to go into 1.1.2 which I can run without any issue. So I was thinking it was probably one of the commits in 1.1.3 that caused the regression....
SInce this specifically dealt with the json formater I suspect it is the problem. If I do not use the json formater then the tests run fine and the html report looks good.
The JSONFormmater has no element to add the Before Hook to... since the senario has not beed added yet.
This fixes the issue with the JSONFormatter but causes issue in the JUnit Reporter.
So it looks like one of the two will need to be updated to fix the issue.