cabbage icon indicating copy to clipboard operation
cabbage copied to clipboard

Allow only one way for importing Gherkin file into tests

Open hauleth opened this issue 5 years ago • 5 comments

~~IMHO such case should be disallowed, and for defining "helper modules" there should be separate module that would define def* macros.~~

hauleth avatar Feb 28 '19 16:02 hauleth

Ok, I found that it makes sense. But alternatively I would suggest using only one way to import Gherkin file.

hauleth avatar Feb 28 '19 17:02 hauleth

Yes it is walid case to have cabbage feature without specified feature file.

But are there multiple ways to import gherkin files? 🤔

revati avatar Feb 28 '19 17:02 revati

Ok, I have read the code wrongly. But anyway, I would disallow such case and instead force user to always define :file in use, and instead provide separate module with DSL macros.

hauleth avatar Feb 28 '19 17:02 hauleth

Something like Cabbage.Feature and Cabbage.AbstractFeature?

While I see a benefit to it, it is more like nice to have feature, not must have, it as well might be a 1.1 release, with an extended feature.

Currently, my priority is getting 1.0 out.

And I have too few hours in week I can spend on it :(

revati avatar Feb 28 '19 20:02 revati

Quick and dirty example how it could work Watermelon.Case and complementary Watermelon.DSL. Example usage of "external step definitions".

hauleth avatar Mar 01 '19 09:03 hauleth