dkornishev / dherkin

Cucumber gherkin runtime for dart
BSD 2-Clause "Simplified" License
8 stars 5 forks source link

Features are run twice #6

Closed Goutte closed 10 years ago

Goutte commented 10 years ago

When i run multiple feature files :

main(args) {
  run([
      '../features/one.feature',
      '../features/two.feature'
  ]);
}

It seems that each feature is run twice.

Goutte commented 10 years ago

I suspected as much, but if I run three features, they're all run thrice.

Maybe I'm not providing the arguments properly ? I'm checking dherkin's "runner" source to find the cause for this, but no cheese.


Might also be useful to provide glob support * in filepaths, while we're at it ?

dkornishev commented 10 years ago

Interesting. Haven't seen that before. Yes, allowing for a whole directory to be run would be nice

2014-06-11 20:29 GMT-04:00 Antoine Goutenoir notifications@github.com:

I suspected as much, but if I run three features, they're all run thrice.

Maybe I'm not providing the arguments properly ? I'm checking dherkin's

"runner" source to find the cause for this, but no cheese.

Might also be useful to provide glob support * in filepaths, while we're at it ?

— Reply to this email directly or view it on GitHub https://github.com/dkornishev/dherkin/issues/6#issuecomment-45817286.

dkornishev commented 10 years ago

confirmed. Will dig deeper this evening/tomorrow

dkornishev commented 10 years ago

Not run twice, printed twice. Fixed by clearing output buffer on flush.