Skipping Code Blocks
Skipping Code Blocks
Not all codeblocks in your markdown need to be tested by specdown,
if you want specdown to skip a codeblock then use the function skip()
.
Given the following markdown file skip_example.md
:
# Skipping Code Blocks Example
```test,skip()
This codeblock is not executed
```
When running:
specdown run skip_example.md
Then you should see the following:
Running tests for skip_example.md:
0 functions run (0 succeeded / 0 failed)