Step routing, written as tests
Each example on this page varies one setting in a short procedure, shown as prose, detected tests, inline tests, and a standalone spec. For what each tab holds, see Navigation and interaction.
Detection finds no steps in these procedures, because the URLs and commands sit in code. So every variant runs the same step statements, and the detected and inline files differ only in detectSteps.
An onFail or onWarning entry on a step that passes never applies. Those examples show the shape, and their effect says what happens when the entry applies.
Step routing permutations
onPass, continue
Varies: step.onPass · Value: [{"continue": true}] · Effect: moves on to the next step. This is the default after a pass.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Print tool versions1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Print tool versions1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Print tool versions. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Print tool versions</title></head><body><h1>Print tool versions</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Print tool versions===================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-continue"><title>Print tool versions</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-continue","detectSteps":true} --># Print tool versions1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-continue","detectSteps":true} */}# Print tool versions1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions// (test {"testId":"data-route-onpass-continue","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions</title></head><body><!-- test {"testId":"data-route-onpass-continue","detectSteps":true} --><h1>Print tool versions</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions===================.. test {"testId":"data-route-onpass-continue","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-continue"><title>Print tool versions</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-continue","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-continue","detectSteps":false} --># Print tool versions1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-continue","detectSteps":false} */}# Print tool versions1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions// (test {"testId":"data-route-onpass-continue","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions</title></head><body><!-- test {"testId":"data-route-onpass-continue","detectSteps":false} --><h1>Print tool versions</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions===================.. test {"testId":"data-route-onpass-continue","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-continue"><title>Print tool versions</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-continue","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onpass-continue","steps": [{"runShell": "node --version","onPass": [{"continue": true}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onpass-continuesteps:- runShell: node --versiononPass:- continue: true- stepId: npmrunShell: npm --version
onPass, stop
Varies: step.onPass · Value: [{"stop": "test"}] · Effect: stops the test after this step passes. The npm step is skipped, and the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Print the Node.js version only1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Print the Node.js version only1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Print the Node.js version only. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version only</title></head><body><h1>Print the Node.js version only</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Print the Node.js version only==============================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-stop"><title>Print the Node.js version only</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-stop","detectSteps":true} --># Print the Node.js version only1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-stop","detectSteps":true} */}# Print the Node.js version only1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print the Node.js version only// (test {"testId":"data-route-onpass-stop","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version only</title></head><body><!-- test {"testId":"data-route-onpass-stop","detectSteps":true} --><h1>Print the Node.js version only</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print the Node.js version only==============================.. test {"testId":"data-route-onpass-stop","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-stop"><title>Print the Node.js version only</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-stop","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-stop","detectSteps":false} --># Print the Node.js version only1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-stop","detectSteps":false} */}# Print the Node.js version only1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print the Node.js version only// (test {"testId":"data-route-onpass-stop","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version only</title></head><body><!-- test {"testId":"data-route-onpass-stop","detectSteps":false} --><h1>Print the Node.js version only</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print the Node.js version only==============================.. test {"testId":"data-route-onpass-stop","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-stop"><title>Print the Node.js version only</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-stop","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onpass-stop","steps": [{"runShell": "node --version","onPass": [{"stop": "test"}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onpass-stopsteps:- runShell: node --versiononPass:- stop: test- stepId: npmrunShell: npm --version
onPass, goToStep
Varies: step.onPass · Value: [{"goToStep": "path"}] · Effect: jumps to the step whose stepId is path. The npm step doesn’t run and isn’t in the results.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Skip ahead after a version check1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
# Skip ahead after a version check1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
= Skip ahead after a version check. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a version check</title></head><body><h1>Skip ahead after a version check</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Skip ahead after a version check================================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-gotostep"><title>Skip ahead after a version check</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-gotostep","detectSteps":true} --># Skip ahead after a version check1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-gotostep","detectSteps":true} */}# Skip ahead after a version check1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead after a version check// (test {"testId":"data-route-onpass-gotostep","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a version check</title></head><body><!-- test {"testId":"data-route-onpass-gotostep","detectSteps":true} --><h1>Skip ahead after a version check</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead after a version check================================.. test {"testId":"data-route-onpass-gotostep","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-gotostep"><title>Skip ahead after a version check</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-gotostep","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-gotostep","detectSteps":false} --># Skip ahead after a version check1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-gotostep","detectSteps":false} */}# Skip ahead after a version check1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead after a version check// (test {"testId":"data-route-onpass-gotostep","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a version check</title></head><body><!-- test {"testId":"data-route-onpass-gotostep","detectSteps":false} --><h1>Skip ahead after a version check</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead after a version check================================.. test {"testId":"data-route-onpass-gotostep","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-gotostep"><title>Skip ahead after a version check</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-gotostep","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onpass-gotostep","steps": [{"runShell": "node --version","onPass": [{"goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onpass-gotostepsteps:- runShell: node --versiononPass:- goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
onPass, retry
Varies: step.onPass · Value: [{"retry": {"limit": 1}}] · Effect: runs the passing step once more, then falls through to the default and continues. The result reports "attempts": 2.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Print the Node.js version twice1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Print the Node.js version twice1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Print the Node.js version twice. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version twice</title></head><body><h1>Print the Node.js version twice</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Print the Node.js version twice===============================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-retry"><title>Print the Node.js version twice</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-retry","detectSteps":true} --># Print the Node.js version twice1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-retry","detectSteps":true} */}# Print the Node.js version twice1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print the Node.js version twice// (test {"testId":"data-route-onpass-retry","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version twice</title></head><body><!-- test {"testId":"data-route-onpass-retry","detectSteps":true} --><h1>Print the Node.js version twice</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print the Node.js version twice===============================.. test {"testId":"data-route-onpass-retry","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-retry"><title>Print the Node.js version twice</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-retry","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onpass-retry","detectSteps":false} --># Print the Node.js version twice1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onpass-retry","detectSteps":false} */}# Print the Node.js version twice1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print the Node.js version twice// (test {"testId":"data-route-onpass-retry","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print the Node.js version twice</title></head><body><!-- test {"testId":"data-route-onpass-retry","detectSteps":false} --><h1>Print the Node.js version twice</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print the Node.js version twice===============================.. test {"testId":"data-route-onpass-retry","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onpass-retry"><title>Print the Node.js version twice</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onpass-retry","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onpass-retry","steps": [{"runShell": "node --version","onPass": [{"retry": {"limit": 1}}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onpass-retrysteps:- runShell: node --versiononPass:- retry:limit: 1- stepId: npmrunShell: npm --version
onFail, continue
Varies: step.onFail · Value: [{"continue": true}] · Effect: applies only if the step fails: the next step still runs, but the test fails. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Print tool versions even if one fails. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Print tool versions even if one fails</title></head><body><h1>Print tool versions even if one fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Print tool versions even if one fails=====================================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-continue"><title>Print tool versions even if one fails</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-continue","detectSteps":true} --># Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-continue","detectSteps":true} */}# Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions even if one fails// (test {"testId":"data-route-onfail-continue","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions even if one fails</title></head><body><!-- test {"testId":"data-route-onfail-continue","detectSteps":true} --><h1>Print tool versions even if one fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions even if one fails=====================================.. test {"testId":"data-route-onfail-continue","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-continue"><title>Print tool versions even if one fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-continue","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-continue","detectSteps":false} --># Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-continue","detectSteps":false} */}# Print tool versions even if one fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions even if one fails// (test {"testId":"data-route-onfail-continue","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions even if one fails</title></head><body><!-- test {"testId":"data-route-onfail-continue","detectSteps":false} --><h1>Print tool versions even if one fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions even if one fails=====================================.. test {"testId":"data-route-onfail-continue","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-continue"><title>Print tool versions even if one fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-continue","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-continue","steps": [{"runShell": "node --version","onFail": [{"continue": true}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-continuesteps:- runShell: node --versiononFail:- continue: true- stepId: npmrunShell: npm --version
onFail, stop
Varies: step.onFail · Value: [{"stop": "test"}] · Effect: applies only if the step fails, and stops the test’s remaining steps. That’s also the default. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Stop when Node.js is missing. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Stop when Node.js is missing</title></head><body><h1>Stop when Node.js is missing</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Stop when Node.js is missing============================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-stop"><title>Stop when Node.js is missing</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-stop","detectSteps":true} --># Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-stop","detectSteps":true} */}# Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop when Node.js is missing// (test {"testId":"data-route-onfail-stop","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop when Node.js is missing</title></head><body><!-- test {"testId":"data-route-onfail-stop","detectSteps":true} --><h1>Stop when Node.js is missing</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop when Node.js is missing============================.. test {"testId":"data-route-onfail-stop","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-stop"><title>Stop when Node.js is missing</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-stop","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-stop","detectSteps":false} --># Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-stop","detectSteps":false} */}# Stop when Node.js is missing1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop when Node.js is missing// (test {"testId":"data-route-onfail-stop","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop when Node.js is missing</title></head><body><!-- test {"testId":"data-route-onfail-stop","detectSteps":false} --><h1>Stop when Node.js is missing</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop when Node.js is missing============================.. test {"testId":"data-route-onfail-stop","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-stop"><title>Stop when Node.js is missing</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-stop","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-stop","steps": [{"runShell": "node --version","onFail": [{"stop": "test"}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-stopsteps:- runShell: node --versiononFail:- stop: test- stepId: npmrunShell: npm --version
onFail, goToStep
Varies: step.onFail · Value: [{"goToStep": "path"}] · Effect: applies only if the step fails, and jumps to path. The failure still fails the test. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
# Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
= Find Node.js if the version check fails. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Find Node.js if the version check fails</title></head><body><h1>Find Node.js if the version check fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Find Node.js if the version check fails=======================================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-gotostep"><title>Find Node.js if the version check fails</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-gotostep","detectSteps":true} --># Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-gotostep","detectSteps":true} */}# Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Find Node.js if the version check fails// (test {"testId":"data-route-onfail-gotostep","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js if the version check fails</title></head><body><!-- test {"testId":"data-route-onfail-gotostep","detectSteps":true} --><h1>Find Node.js if the version check fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Find Node.js if the version check fails=======================================.. test {"testId":"data-route-onfail-gotostep","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-gotostep"><title>Find Node.js if the version check fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-gotostep","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-gotostep","detectSteps":false} --># Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-gotostep","detectSteps":false} */}# Find Node.js if the version check fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Find Node.js if the version check fails// (test {"testId":"data-route-onfail-gotostep","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Find Node.js if the version check fails</title></head><body><!-- test {"testId":"data-route-onfail-gotostep","detectSteps":false} --><h1>Find Node.js if the version check fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onFail":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Find Node.js if the version check fails=======================================.. test {"testId":"data-route-onfail-gotostep","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-gotostep"><title>Find Node.js if the version check fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-gotostep","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onFail":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-gotostep","steps": [{"runShell": "node --version","onFail": [{"goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-gotostepsteps:- runShell: node --versiononFail:- goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
onFail, retry with limit
Varies: step.onFail · Value: [{"retry": {"limit": 2}}] · Effect: the check fails once, and the first retry passes, so the step and the test pass with "attempts": 2. Retries run with no delay.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
= Wait for a service to be ready. Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre></li></ol></body></html>
Wait for a service to be ready==============================#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-limit"><title>Wait for a service to be ready</title><taskbody><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-limit","detectSteps":true} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-limit","detectSteps":true} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-limit","detectSteps":true}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-limit","detectSteps":true} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-limit","detectSteps":true}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-limit"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-limit","detectSteps":true}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-limit","detectSteps":false} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-limit","detectSteps":false} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-limit","detectSteps":false}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-limit","detectSteps":false} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-limit","detectSteps":false}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-limit"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-limit","detectSteps":false}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-retry-limit","steps": [{"runShell": "node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail": [{"retry": {"limit": 2}}]}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-retry-limitsteps:- runShell: node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-limit');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"onFail:- retry:limit: 2
onFail, retry with delay
Varies: step.onFail · Value: [{"retry": {"limit": 2, "delay": 500}}] · Effect: waits 500 milliseconds before each retry.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
= Wait for a service to be ready. Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre></li></ol></body></html>
Wait for a service to be ready==============================#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-delay"><title>Wait for a service to be ready</title><taskbody><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-delay","detectSteps":true} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-delay","detectSteps":true} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-delay","detectSteps":true}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-delay","detectSteps":true} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-delay","detectSteps":true}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-delay"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-delay","detectSteps":true}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-delay","detectSteps":false} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-delay","detectSteps":false} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-delay","detectSteps":false}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-delay","detectSteps":false} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-delay","detectSteps":false}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-delay"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-delay","detectSteps":false}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2,"delay":500}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-retry-delay","steps": [{"runShell": "node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail": [{"retry": {"limit": 2,"delay": 500}}]}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-retry-delaysteps:- runShell: node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-delay');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"onFail:- retry:limit: 2delay: 500
onFail, retry with backoff: fixed
Varies: step.onFail · Value: [{"retry": {"limit": 3, "delay": 500, "backoff": "fixed"}}] · Effect: waits the same 500 milliseconds before every retry. This is the default backoff.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
= Wait for a service to be ready. Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre></li></ol></body></html>
Wait for a service to be ready==============================#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-fixed"><title>Wait for a service to be ready</title><taskbody><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-fixed"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":true}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-fixed"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-backoff-fixed","detectSteps":false}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"fixed"}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-retry-backoff-fixed","steps": [{"runShell": "node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail": [{"retry": {"limit": 3,"delay": 500,"backoff": "fixed"}}]}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-retry-backoff-fixedsteps:- runShell: node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-fixed');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"onFail:- retry:limit: 3delay: 500backoff: fixed
onFail, retry with backoff: exponential
Varies: step.onFail · Value: [{"retry": {"limit": 3, "delay": 500, "backoff": "exponential"}}] · Effect: doubles the wait before each retry: 500, then 1000, then 2000 milliseconds.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```
= Wait for a service to be ready. Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre></li></ol></body></html>
Wait for a service to be ready==============================#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-exponential"><title>Wait for a service to be ready</title><taskbody><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-exponential"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":true}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false} --># Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false} */}# Wait for a service to be ready1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} */}{/* test end */}
= Wait for a service to be ready// (test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service to be ready</title></head><body><!-- test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false} --><h1>Wait for a service to be ready</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]} --></li></ol><!-- test end --></body></html>
Wait for a service to be ready==============================.. test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-backoff-exponential"><title>Wait for a service to be ready</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-backoff-exponential","detectSteps":false}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":3,"delay":500,"backoff":"exponential"}}]}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-retry-backoff-exponential","steps": [{"runShell": "node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail": [{"retry": {"limit": 3,"delay": 500,"backoff": "exponential"}}]}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-retry-backoff-exponentialsteps:- runShell: node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-backoff-exponential');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"onFail:- retry:limit: 3delay: 500backoff: exponential
onFail, retry then continue
Varies: step.onFail · Value: [{"retry": {"limit": 2}}, {"continue": true}] · Effect: retries first. If the step still fails after its retries, the next entry applies and the test moves on. Here the first retry passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```2. Print the npm version:```shellnpm --version```
# Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```2. Print the npm version:```shellnpm --version```
= Wait for a service, then move on. Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Wait for a service, then move on</title></head><body><h1>Wait for a service, then move on</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Wait for a service, then move on================================#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-then-continue"><title>Wait for a service, then move on</title><taskbody><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true} --># Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true} */}# Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Wait for a service, then move on// (test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service, then move on</title></head><body><!-- test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true} --><h1>Wait for a service, then move on</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Wait for a service, then move on================================.. test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-then-continue"><title>Wait for a service, then move on</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-then-continue","detectSteps":true}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false} --># Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```<!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false} */}# Wait for a service, then move on1. Check that the service is ready. If the check fails, check again:```shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"```{/* step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Wait for a service, then move on// (test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false}). Check that the service is ready. If the check fails, check again:+[source,shell]----node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"----+// (step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Wait for a service, then move on</title></head><body><!-- test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false} --><h1>Wait for a service, then move on</h1><ol><li>Check that the service is ready. If the check fails, check again:<pre><code class="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</code></pre><!-- step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Wait for a service, then move on================================.. test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false}#. Check that the service is ready. If the check fails, check again:.. code-block:: shellnode -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}".. step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onfail-retry-then-continue"><title>Wait for a service, then move on</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onfail-retry-then-continue","detectSteps":false}'/><steps><step><cmd>Check that the service is ready. If the check fails, check again:</cmd><info><codeblock outputclass="language-shell">node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"</codeblock><data name="doc-detective" value='step {"runShell":"node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail":[{"retry":{"limit":2}},{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onfail-retry-then-continue","steps": [{"runShell": "node -e \"const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}\"","onFail": [{"retry": {"limit": 2}},{"continue": true}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onfail-retry-then-continuesteps:- runShell: node -e "const fs=require('fs'),f=require('path').join(require('os').tmpdir(),'dd-data-route-onfail-retry-then-continue');if(fs.existsSync(f)){fs.rmSync(f)}else{fs.writeFileSync(f,'');console.error('Not ready yet.');process.exit(1)}"onFail:- retry:limit: 2- continue: true- stepId: npmrunShell: npm --version
onSkip, continue
Varies: step.onSkip · Value: [{"continue": true}] · Effect: the help step’s if is false, so it’s skipped, and the test moves on. This is the default after a skip.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
# Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
= Show help only when Node.js fails. Print the Node.js version:+[source,shell]----node --version----. If that failed, print the help for `+node+`:+[source,shell]----node --help----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Show help only when Node.js fails</title></head><body><h1>Show help only when Node.js fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Show help only when Node.js fails=================================#. Print the Node.js version:.. code-block:: shellnode --version#. If that failed, print the help for ``node``:.. code-block:: shellnode --help#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-continue"><title>Show help only when Node.js fails</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-continue","detectSteps":true} --># Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-continue","detectSteps":true} */}# Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Show help only when Node.js fails// (test {"testId":"data-route-onskip-continue","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Show help only when Node.js fails</title></head><body><!-- test {"testId":"data-route-onskip-continue","detectSteps":true} --><h1>Show help only when Node.js fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Show help only when Node.js fails=================================.. test {"testId":"data-route-onskip-continue","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-continue"><title>Show help only when Node.js fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-continue","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-continue","detectSteps":false} --># Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-continue","detectSteps":false} */}# Show help only when Node.js fails1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Show help only when Node.js fails// (test {"testId":"data-route-onskip-continue","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Show help only when Node.js fails</title></head><body><!-- test {"testId":"data-route-onskip-continue","detectSteps":false} --><h1>Show help only when Node.js fails</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Show help only when Node.js fails=================================.. test {"testId":"data-route-onskip-continue","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-continue"><title>Show help only when Node.js fails</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-continue","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onskip-continue","steps": [{"runShell": "node --version","stepId": "version"},{"if": "$$steps.version.outputs.exitCode != 0","runShell": "node --help","onSkip": [{"continue": true}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onskip-continuesteps:- runShell: node --versionstepId: version- if: $$steps.version.outputs.exitCode != 0runShell: node --helponSkip:- continue: true- stepId: npmrunShell: npm --version
onSkip, stop
Varies: step.onSkip · Value: [{"stop": "test"}] · Effect: the help step is skipped, so the test stops. The npm step is skipped too, and the test passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
# Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
= Stop when the help step is skipped. Print the Node.js version:+[source,shell]----node --version----. If that failed, print the help for `+node+`:+[source,shell]----node --help----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Stop when the help step is skipped</title></head><body><h1>Stop when the help step is skipped</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Stop when the help step is skipped==================================#. Print the Node.js version:.. code-block:: shellnode --version#. If that failed, print the help for ``node``:.. code-block:: shellnode --help#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-stop"><title>Stop when the help step is skipped</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-stop","detectSteps":true} --># Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-stop","detectSteps":true} */}# Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop when the help step is skipped// (test {"testId":"data-route-onskip-stop","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop when the help step is skipped</title></head><body><!-- test {"testId":"data-route-onskip-stop","detectSteps":true} --><h1>Stop when the help step is skipped</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop when the help step is skipped==================================.. test {"testId":"data-route-onskip-stop","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-stop"><title>Stop when the help step is skipped</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-stop","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-stop","detectSteps":false} --># Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-stop","detectSteps":false} */}# Stop when the help step is skipped1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop when the help step is skipped// (test {"testId":"data-route-onskip-stop","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop when the help step is skipped</title></head><body><!-- test {"testId":"data-route-onskip-stop","detectSteps":false} --><h1>Stop when the help step is skipped</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop when the help step is skipped==================================.. test {"testId":"data-route-onskip-stop","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-stop"><title>Stop when the help step is skipped</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-stop","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onskip-stop","steps": [{"runShell": "node --version","stepId": "version"},{"if": "$$steps.version.outputs.exitCode != 0","runShell": "node --help","onSkip": [{"stop": "test"}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onskip-stopsteps:- runShell: node --versionstepId: version- if: $$steps.version.outputs.exitCode != 0runShell: node --helponSkip:- stop: test- stepId: npmrunShell: npm --version
onSkip, goToStep
Varies: step.onSkip · Value: [{"goToStep": "path"}] · Effect: the help step is skipped and jumps to path, so the npm step doesn’t run.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Jump past the help steps1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```4. Find the Node.js executable:```shellcommand -v node```
# Jump past the help steps1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```4. Find the Node.js executable:```shellcommand -v node```
= Jump past the help steps. Print the Node.js version:+[source,shell]----node --version----. If that failed, print the help for `+node+`:+[source,shell]----node --help----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Jump past the help steps</title></head><body><h1>Jump past the help steps</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Jump past the help steps========================#. Print the Node.js version:.. code-block:: shellnode --version#. If that failed, print the help for ``node``:.. code-block:: shellnode --help#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-gotostep"><title>Jump past the help steps</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-gotostep","detectSteps":true} --># Jump past the help steps1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->4. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-gotostep","detectSteps":true} */}# Jump past the help steps1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}4. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Jump past the help steps// (test {"testId":"data-route-onskip-gotostep","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Jump past the help steps</title></head><body><!-- test {"testId":"data-route-onskip-gotostep","detectSteps":true} --><h1>Jump past the help steps</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Jump past the help steps========================.. test {"testId":"data-route-onskip-gotostep","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-gotostep"><title>Jump past the help steps</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-gotostep","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-gotostep","detectSteps":false} --># Jump past the help steps1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->4. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-gotostep","detectSteps":false} */}# Jump past the help steps1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}4. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Jump past the help steps// (test {"testId":"data-route-onskip-gotostep","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Jump past the help steps</title></head><body><!-- test {"testId":"data-route-onskip-gotostep","detectSteps":false} --><h1>Jump past the help steps</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Jump past the help steps========================.. test {"testId":"data-route-onskip-gotostep","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-gotostep"><title>Jump past the help steps</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-gotostep","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onskip-gotostep","steps": [{"runShell": "node --version","stepId": "version"},{"if": "$$steps.version.outputs.exitCode != 0","runShell": "node --help","onSkip": [{"goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onskip-gotostepsteps:- runShell: node --versionstepId: version- if: $$steps.version.outputs.exitCode != 0runShell: node --helponSkip:- goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
onSkip, retry
Varies: step.onSkip · Value: [{"retry": {"limit": 1}}] · Effect: a step skipped by its if never ran, so retry doesn’t run it again. It re-runs only a step whose own action returned SKIPPED.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Retry a skipped step1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
# Retry a skipped step1. Print the Node.js version:```shellnode --version```2. If that failed, print the help for `node`:```shellnode --help```3. Print the npm version:```shellnpm --version```
= Retry a skipped step. Print the Node.js version:+[source,shell]----node --version----. If that failed, print the help for `+node+`:+[source,shell]----node --help----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Retry a skipped step</title></head><body><h1>Retry a skipped step</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Retry a skipped step====================#. Print the Node.js version:.. code-block:: shellnode --version#. If that failed, print the help for ``node``:.. code-block:: shellnode --help#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-retry"><title>Retry a skipped step</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-retry","detectSteps":true} --># Retry a skipped step1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-retry","detectSteps":true} */}# Retry a skipped step1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Retry a skipped step// (test {"testId":"data-route-onskip-retry","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Retry a skipped step</title></head><body><!-- test {"testId":"data-route-onskip-retry","detectSteps":true} --><h1>Retry a skipped step</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Retry a skipped step====================.. test {"testId":"data-route-onskip-retry","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-retry"><title>Retry a skipped step</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-retry","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onskip-retry","detectSteps":false} --># Retry a skipped step1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","stepId":"version"} -->2. If that failed, print the help for `node`:```shellnode --help```<!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} -->3. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onskip-retry","detectSteps":false} */}# Retry a skipped step1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","stepId":"version"} */}2. If that failed, print the help for `node`:```shellnode --help```{/* step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} */}3. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Retry a skipped step// (test {"testId":"data-route-onskip-retry","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","stepId":"version"}). If that failed, print the help for `+node+`:+[source,shell]----node --help----+// (step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Retry a skipped step</title></head><body><!-- test {"testId":"data-route-onskip-retry","detectSteps":false} --><h1>Retry a skipped step</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","stepId":"version"} --></li><li>If that failed, print the help for <code>node</code>:<pre><code class="language-shell">node --help</code></pre><!-- step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Retry a skipped step====================.. test {"testId":"data-route-onskip-retry","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","stepId":"version"}#. If that failed, print the help for ``node``:.. code-block:: shellnode --help.. step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onskip-retry"><title>Retry a skipped step</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onskip-retry","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","stepId":"version"}'/></info></step><step><cmd>If that failed, print the help for <codeph>node</codeph>:</cmd><info><codeblock outputclass="language-shell">node --help</codeblock><data name="doc-detective" value='step {"if":"$$steps.version.outputs.exitCode != 0","runShell":"node --help","onSkip":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onskip-retry","steps": [{"runShell": "node --version","stepId": "version"},{"if": "$$steps.version.outputs.exitCode != 0","runShell": "node --help","onSkip": [{"retry": {"limit": 1}}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onskip-retrysteps:- runShell: node --versionstepId: version- if: $$steps.version.outputs.exitCode != 0runShell: node --helponSkip:- retry:limit: 1- stepId: npmrunShell: npm --version
onWarning, continue
Varies: step.onWarning · Value: [{"continue": true}] · Effect: applies only if the step ends with a warning, and moves on. That’s also the default. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Print tool versions after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Print tool versions after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Print tool versions after a warning. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Print tool versions after a warning</title></head><body><h1>Print tool versions after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Print tool versions after a warning===================================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-continue"><title>Print tool versions after a warning</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-continue","detectSteps":true} --># Print tool versions after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-continue","detectSteps":true} */}# Print tool versions after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions after a warning// (test {"testId":"data-route-onwarning-continue","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-continue","detectSteps":true} --><h1>Print tool versions after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions after a warning===================================.. test {"testId":"data-route-onwarning-continue","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-continue"><title>Print tool versions after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-continue","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-continue","detectSteps":false} --># Print tool versions after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"continue":true}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-continue","detectSteps":false} */}# Print tool versions after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"continue":true}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Print tool versions after a warning// (test {"testId":"data-route-onwarning-continue","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"continue":true}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Print tool versions after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-continue","detectSteps":false} --><h1>Print tool versions after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"continue":true}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Print tool versions after a warning===================================.. test {"testId":"data-route-onwarning-continue","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"continue":true}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-continue"><title>Print tool versions after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-continue","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"continue":true}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onwarning-continue","steps": [{"runShell": "node --version","onWarning": [{"continue": true}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onwarning-continuesteps:- runShell: node --versiononWarning:- continue: true- stepId: npmrunShell: npm --version
onWarning, stop
Varies: step.onWarning · Value: [{"stop": "test"}] · Effect: applies only if the step ends with a warning, and stops the test. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Stop after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Stop after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Stop after a warning. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Stop after a warning</title></head><body><h1>Stop after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Stop after a warning====================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-stop"><title>Stop after a warning</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-stop","detectSteps":true} --># Stop after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-stop","detectSteps":true} */}# Stop after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop after a warning// (test {"testId":"data-route-onwarning-stop","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-stop","detectSteps":true} --><h1>Stop after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop after a warning====================.. test {"testId":"data-route-onwarning-stop","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-stop"><title>Stop after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-stop","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-stop","detectSteps":false} --># Stop after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-stop","detectSteps":false} */}# Stop after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Stop after a warning// (test {"testId":"data-route-onwarning-stop","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Stop after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-stop","detectSteps":false} --><h1>Stop after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Stop after a warning====================.. test {"testId":"data-route-onwarning-stop","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-stop"><title>Stop after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-stop","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onwarning-stop","steps": [{"runShell": "node --version","onWarning": [{"stop": "test"}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onwarning-stopsteps:- runShell: node --versiononWarning:- stop: test- stepId: npmrunShell: npm --version
onWarning, goToStep
Varies: step.onWarning · Value: [{"goToStep": "path"}] · Effect: applies only if the step ends with a warning, and jumps to path. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Jump ahead after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
# Jump ahead after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
= Jump ahead after a warning. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Jump ahead after a warning</title></head><body><h1>Jump ahead after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Jump ahead after a warning==========================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-gotostep"><title>Jump ahead after a warning</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-gotostep","detectSteps":true} --># Jump ahead after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-gotostep","detectSteps":true} */}# Jump ahead after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Jump ahead after a warning// (test {"testId":"data-route-onwarning-gotostep","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Jump ahead after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-gotostep","detectSteps":true} --><h1>Jump ahead after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Jump ahead after a warning==========================.. test {"testId":"data-route-onwarning-gotostep","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-gotostep"><title>Jump ahead after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-gotostep","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-gotostep","detectSteps":false} --># Jump ahead after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-gotostep","detectSteps":false} */}# Jump ahead after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Jump ahead after a warning// (test {"testId":"data-route-onwarning-gotostep","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Jump ahead after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-gotostep","detectSteps":false} --><h1>Jump ahead after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Jump ahead after a warning==========================.. test {"testId":"data-route-onwarning-gotostep","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-gotostep"><title>Jump ahead after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-gotostep","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onwarning-gotostep","steps": [{"runShell": "node --version","onWarning": [{"goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onwarning-gotostepsteps:- runShell: node --versiononWarning:- goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
onWarning, retry
Varies: step.onWarning · Value: [{"retry": {"limit": 1}}] · Effect: applies only if the step ends with a warning, and runs it again. Here the step passes.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Retry after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Retry after a warning1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Retry after a warning. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Retry after a warning</title></head><body><h1>Retry after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Retry after a warning=====================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-retry"><title>Retry after a warning</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-retry","detectSteps":true} --># Retry after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-retry","detectSteps":true} */}# Retry after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Retry after a warning// (test {"testId":"data-route-onwarning-retry","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Retry after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-retry","detectSteps":true} --><h1>Retry after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Retry after a warning=====================.. test {"testId":"data-route-onwarning-retry","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-retry"><title>Retry after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-retry","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-onwarning-retry","detectSteps":false} --># Retry after a warning1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-onwarning-retry","detectSteps":false} */}# Retry after a warning1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Retry after a warning// (test {"testId":"data-route-onwarning-retry","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Retry after a warning</title></head><body><!-- test {"testId":"data-route-onwarning-retry","detectSteps":false} --><h1>Retry after a warning</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Retry after a warning=====================.. test {"testId":"data-route-onwarning-retry","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-onwarning-retry"><title>Retry after a warning</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-onwarning-retry","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onWarning":[{"retry":{"limit":1}}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-onwarning-retry","steps": [{"runShell": "node --version","onWarning": [{"retry": {"limit": 1}}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-onwarning-retrysteps:- runShell: node --versiononWarning:- retry:limit: 1- stepId: npmrunShell: npm --version
Entry if, string
Varies: step.onPass[].if · Value: "$$platform oneOf [linux, mac, windows]" · Effect: the entry applies only when its condition is true. It’s true here, so the step jumps to path.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
# Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
= Skip ahead on desktop platforms. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Skip ahead on desktop platforms</title></head><body><h1>Skip ahead on desktop platforms</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Skip ahead on desktop platforms===============================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-string"><title>Skip ahead on desktop platforms</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-string","detectSteps":true} --># Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-if-string","detectSteps":true} */}# Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead on desktop platforms// (test {"testId":"data-route-if-string","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead on desktop platforms</title></head><body><!-- test {"testId":"data-route-if-string","detectSteps":true} --><h1>Skip ahead on desktop platforms</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead on desktop platforms===============================.. test {"testId":"data-route-if-string","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-string"><title>Skip ahead on desktop platforms</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-string","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-string","detectSteps":false} --># Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-if-string","detectSteps":false} */}# Skip ahead on desktop platforms1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead on desktop platforms// (test {"testId":"data-route-if-string","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead on desktop platforms</title></head><body><!-- test {"testId":"data-route-if-string","detectSteps":false} --><h1>Skip ahead on desktop platforms</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead on desktop platforms===============================.. test {"testId":"data-route-if-string","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-string"><title>Skip ahead on desktop platforms</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-string","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":"$$platform oneOf [linux, mac, windows]","goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-if-string","steps": [{"runShell": "node --version","onPass": [{"if": "$$platform oneOf [linux, mac, windows]","goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-if-stringsteps:- runShell: node --versiononPass:- if: $$platform oneOf [linux, mac, windows]goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
Entry if, array
Varies: step.onPass[].if · Value: ["$$outputs.exitCode == 0", "$$outputs.stdio.stdout matches /^v/"] · Effect: every condition must be true. An entry’s condition reads the step’s own $$outputs.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
# Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```3. Find the Node.js executable:```shellcommand -v node```
= Skip ahead after a valid version. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----. Find the Node.js executable:+[source,shell]----command -v node----
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a valid version</title></head><body><h1>Skip ahead after a valid version</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre></li></ol></body></html>
Skip ahead after a valid version================================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version#. Find the Node.js executable:.. code-block:: shellcommand -v node
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-array"><title>Skip ahead after a valid version</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-array","detectSteps":true} --># Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-if-array","detectSteps":true} */}# Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead after a valid version// (test {"testId":"data-route-if-array","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a valid version</title></head><body><!-- test {"testId":"data-route-if-array","detectSteps":true} --><h1>Skip ahead after a valid version</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead after a valid version================================.. test {"testId":"data-route-if-array","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-array"><title>Skip ahead after a valid version</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-array","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-array","detectSteps":false} --># Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} -->3. Find the Node.js executable:```shellcommand -v node```<!-- step {"stepId":"path","runShell":"command -v node"} --><!-- test end -->
{/* test {"testId":"data-route-if-array","detectSteps":false} */}# Skip ahead after a valid version1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}3. Find the Node.js executable:```shellcommand -v node```{/* step {"stepId":"path","runShell":"command -v node"} */}{/* test end */}
= Skip ahead after a valid version// (test {"testId":"data-route-if-array","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"}). Find the Node.js executable:+[source,shell]----command -v node----+// (step {"stepId":"path","runShell":"command -v node"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Skip ahead after a valid version</title></head><body><!-- test {"testId":"data-route-if-array","detectSteps":false} --><h1>Skip ahead after a valid version</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li><li>Find the Node.js executable:<pre><code class="language-shell">command -v node</code></pre><!-- step {"stepId":"path","runShell":"command -v node"} --></li></ol><!-- test end --></body></html>
Skip ahead after a valid version================================.. test {"testId":"data-route-if-array","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}#. Find the Node.js executable:.. code-block:: shellcommand -v node.. step {"stepId":"path","runShell":"command -v node"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-array"><title>Skip ahead after a valid version</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-array","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep":"path"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step><step><cmd>Find the Node.js executable:</cmd><info><codeblock outputclass="language-shell">command -v node</codeblock><data name="doc-detective" value='step {"stepId":"path","runShell":"command -v node"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-if-array","steps": [{"runShell": "node --version","onPass": [{"if": ["$$outputs.exitCode == 0","$$outputs.stdio.stdout matches /^v/"],"goToStep": "path"}]},{"stepId": "npm","runShell": "npm --version"},{"stepId": "path","runShell": "command -v node"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-if-arraysteps:- runShell: node --versiononPass:- if:- $$outputs.exitCode == 0- $$outputs.stdio.stdout matches /^v/goToStep: path- stepId: npmrunShell: npm --version- stepId: pathrunShell: command -v node
Entry if, false
Varies: step.onPass[].if · Value: "$$outputs.exitCode != 0" · Effect: the condition is false, so the entry doesn’t apply and the default runs: the test continues to the npm step.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Fall back to the default route1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
# Fall back to the default route1. Print the Node.js version:```shellnode --version```2. Print the npm version:```shellnpm --version```
= Fall back to the default route. Print the Node.js version:+[source,shell]----node --version----. Print the npm version:+[source,shell]----npm --version----
<!DOCTYPE html><html lang="en"><head><title>Fall back to the default route</title></head><body><h1>Fall back to the default route</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre></li></ol></body></html>
Fall back to the default route==============================#. Print the Node.js version:.. code-block:: shellnode --version#. Print the npm version:.. code-block:: shellnpm --version
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-false"><title>Fall back to the default route</title><taskbody><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-false","detectSteps":true} --># Fall back to the default route1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-if-false","detectSteps":true} */}# Fall back to the default route1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Fall back to the default route// (test {"testId":"data-route-if-false","detectSteps":true}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Fall back to the default route</title></head><body><!-- test {"testId":"data-route-if-false","detectSteps":true} --><h1>Fall back to the default route</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Fall back to the default route==============================.. test {"testId":"data-route-if-false","detectSteps":true}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-false"><title>Fall back to the default route</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-false","detectSteps":true}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
<!-- test {"testId":"data-route-if-false","detectSteps":false} --># Fall back to the default route1. Print the Node.js version:```shellnode --version```<!-- step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} -->2. Print the npm version:```shellnpm --version```<!-- step {"stepId":"npm","runShell":"npm --version"} --><!-- test end -->
{/* test {"testId":"data-route-if-false","detectSteps":false} */}# Fall back to the default route1. Print the Node.js version:```shellnode --version```{/* step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} */}2. Print the npm version:```shellnpm --version```{/* step {"stepId":"npm","runShell":"npm --version"} */}{/* test end */}
= Fall back to the default route// (test {"testId":"data-route-if-false","detectSteps":false}). Print the Node.js version:+[source,shell]----node --version----+// (step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}). Print the npm version:+[source,shell]----npm --version----+// (step {"stepId":"npm","runShell":"npm --version"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Fall back to the default route</title></head><body><!-- test {"testId":"data-route-if-false","detectSteps":false} --><h1>Fall back to the default route</h1><ol><li>Print the Node.js version:<pre><code class="language-shell">node --version</code></pre><!-- step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]} --></li><li>Print the npm version:<pre><code class="language-shell">npm --version</code></pre><!-- step {"stepId":"npm","runShell":"npm --version"} --></li></ol><!-- test end --></body></html>
Fall back to the default route==============================.. test {"testId":"data-route-if-false","detectSteps":false}#. Print the Node.js version:.. code-block:: shellnode --version.. step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}#. Print the npm version:.. code-block:: shellnpm --version.. step {"stepId":"npm","runShell":"npm --version"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="data-route-if-false"><title>Fall back to the default route</title><taskbody><data name="doc-detective" value='test {"testId":"data-route-if-false","detectSteps":false}'/><steps><step><cmd>Print the Node.js version:</cmd><info><codeblock outputclass="language-shell">node --version</codeblock><data name="doc-detective" value='step {"runShell":"node --version","onPass":[{"if":"$$outputs.exitCode != 0","stop":"test"}]}'/></info></step><step><cmd>Print the npm version:</cmd><info><codeblock outputclass="language-shell">npm --version</codeblock><data name="doc-detective" value='step {"stepId":"npm","runShell":"npm --version"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "data-route-if-false","steps": [{"runShell": "node --version","onPass": [{"if": "$$outputs.exitCode != 0","stop": "test"}]},{"stepId": "npm","runShell": "npm --version"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: data-route-if-falsesteps:- runShell: node --versiononPass:- if: $$outputs.exitCode != 0stop: test- stepId: npmrunShell: npm --version