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

Closed TetianaKhomenko closed 2 weeks ago

TetianaKhomenko commented 3 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 3 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.

olexandr13 commented 2 weeks ago

Structure is changed if IDs are present

Image

Please give exact example if adding IDs does not help for you, cause I can't reproduce with the example below