ThinkingEngine-net / PickleTestSuite

1 stars 0 forks source link

Filter the #Executable to allow full script insertion (not just independent snippets). #106

Closed ThinkingEngine-net closed 1 year ago

ThinkingEngine-net commented 1 year ago

The current #excute command inserts raw text from a file, which fails if the inserted text contains structural gherkin elements.

To alleviate the issue and allow for test scripts to be inserted, the insert should remove any line that starts with "Feature:". This will allow the fully formed scenarios of another script to be inserted into a parent stript without failure.

The approach will be to comment out the feature line by placing "#!execRemoved!#" at the beginning of the line. This will maintain the overall structure.

ThinkingEngine-net commented 1 year ago

Done.

ThinkingEngine-net commented 1 year ago

Documentation updated: https://te-wiki.marescal.co.uk/doku.php?id=wiki:pickle:insertscripts#is_a_snippet_script_different_to_a_normal_gherkin_script