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

Run subset of stories #4

Open sysgen opened 7 years ago

sysgen commented 7 years ago

Provide a method in which to run only a subset of the .story files present in a project (even running only a single story would be helpful).

sysgen commented 7 years ago

At the moment, there's a single test runner and while the tests all appear individually, its a single class/method performing the tests within the suite. From what I can see, there's no obvious way to make these tests runnable individually, other than dynamically creating class/test methods on the fly. JUnit 5 (Currently at M3 status) will support dynamic tests and a test factory which will make individual running possible.

sysgen commented 7 years ago

Has relationship to issue 10 where story runner needs to link the scenario to the actual runner.

Geraden07 commented 5 years ago

I have a workaround for this issue in the mean time:

wmut-test-runner

By overriding the storyPaths method in the test runner, you can dynamically craft a list of comma separated strings to look for stories. By commenting out lines you can temporarily disable looking for stories in certain folders.

You folder structure would have to look like: wmut-stories-folder