wmaop / wm-jbehave

Unit Testing for webMethods Flow services with a Behavioural Driven style
https://github.com/wmaop/wm-jbehave/wiki
MIT License
5 stars 3 forks source link

More than one story file with same name shows incorrect results #10

Open sysgen opened 7 years ago

sysgen commented 7 years ago

scenario: stories/sub1/myscenario.story and stories/sub2/myscenario.story

When these two are run, JUnit shows one as not run and misreports errors to the wrong story. Appears that the JUnitReportingRunner support classes are being confused when they truncate the path to just the filename.

The code from the Runner has not been updated so will need to extract and refactor to make compliant with needs. Should also help to remove the unnecessary Before and After that adds to the junit run count.

sysgen commented 7 years ago

When changing the name resolving, ensure that double clicking of the story in JUnit opens up the actual story file.