testomatio / check-cucumber

Cucumber checker for Testomat.io
8 stars 3 forks source link

Check-cucumber seems to duplicate tests after changing structure in Testomat #63

Open TetianaKhomenko opened 2 months ago

TetianaKhomenko commented 2 months ago

when changing the structure in code the old tests are kept in Testomat

this is the command used npx check-cucumber@latest "**/*.feature" --dir features/test --sync --keep-structure --no-detached

To reproduce:

  1. have structure in code

    features
    |__ a.feature
  2. then sync npx check-cucumber@latest "**/*.feature" --dir features/test --sync --keep-structure --no-detached

  3. then we move a.feature under a new folder

features
|__ featuresA
|____ a.feature
  1. in testomat we will have
features
|__a.feature
|__ featuresA
|____ a.feature
aakrem commented 2 months ago

also --update-ids won't help much as it will insert not needed data in our features. So I think we need a sort of --overwrite or so, that will take always what's defined in definitions source code.