:sparkles: :rocket: Veggies is an awesome cucumberjs library for API/CLI testing. Great for testing APIs built upon Express, Koa, HAPI, Loopback and others. It's also the perfect companion for testing CLI applications built with commander, meow & Co.
The snapshots developed by @bnadim didn't work with Scenario Outlines, @plouc pointed that out, and I tried to solve the problem as best as I can. I am still willing to refine my code until this PR's is acceptable and merged :)
Test plan
To test this, I added one test to examples/filters/snapshot/snapshot.feature which is a Scenario Outline where the examples are somewhat scattered across multiple lines, so as to test that the blank lines and comments are ignored.
To run my tests, I used this command cucumberjs --require examples/support examples/features --tags @snapshot
Summary This PR is in response to https://github.com/ekino/veggies/issues/24 I try to make the snapshot support
Scenario Outlines
The snapshots developed by @bnadim didn't work with Scenario Outlines, @plouc pointed that out, and I tried to solve the problem as best as I can. I am still willing to refine my code until this PR's is acceptable and merged :)
Test plan To test this, I added one test to
examples/filters/snapshot/snapshot.feature
which is a Scenario Outline where the examples are somewhat scattered across multiple lines, so as to test that the blank lines and comments are ignored. To run my tests, I used this commandcucumberjs --require examples/support examples/features --tags @snapshot