Closed jeeyyy closed 4 years ago
@Jym77 FYI - when visiting the ast for heading we get all depths. We have tests in the other repo where we ensure test case headings are named correctly and of the right depth. So we should be good here to just filter by a desired depth.
@Jym77 FYI - when visiting the ast for heading we get all depths. We have tests in the other repo where we ensure test case headings are named correctly and of the right depth. So we should be good here to just filter by a desired depth.
There will be a problem if something else than a test case has a heading depth of 4 (it will then be wrongly treated as an example).
Update
createTestcases
npm script to parse markdown files usingremark
and use the markdown syntax tree to grabcode
snippets, than relying on regex.This is a step in the right direction over using regular expressions.