testomatio / check-cucumber

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

--unsafe-clean-ids and --clean-ids options create gaps in source code #43

Closed TetianaKhomenko closed 1 year ago

TetianaKhomenko commented 3 years ago

Describe the bug I have a project that I use very often in Testimatio. I use --unsafe-clean-ids or --clean-ids before I import tests to another Testimatio project. I noticed that some gaps are present in the source code and there is a gap between the new suite tag and the actual feature name after --update-ids.

To Reproduce Steps to reproduce the behavior:

  1. import autotests to a project
  2. use --update-ids
  3. use --unsafe-clean-ids
  4. use --update-ids again
  5. use --unsafe-clean-ids again
  6. use --update-ids again
  7. go to source code
  8. open a feature file
  9. see the issue

Expected behavior No gaps are created after --unsafe-clean-ids option.

Screenshots

image

image

image

Desktop (please complete the following information):

olexandr13 commented 1 year ago

should be fixed

olexandr13 commented 1 year ago

can't import tests by check-cucumber now at all. needs investigation

olexandr13 commented 1 year ago

https://github.com/testomatio/check-cucumber/pull/54

olexandr13 commented 1 year ago

Fixed in 0.5.17