Test structure, written as tests
Each example shows one procedure as prose, as detected tests, as inline tests, and as a standalone spec. For what each tab holds, see Navigation and interaction.
Create and look up users
This procedure keeps two tests and an ignored section in one file. It uses httpRequest, the spec fields specId and description, the test fields testId and description, the step fields stepId and description, ignore blocks, and the config fields beforeAll and afterAll.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Manage users## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```
# Manage users## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```
= Manage users== Create a userTo create a user, send a `POST` request to `/api/users`:[source,http]----POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}----== Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:[source,http]----GET http://localhost:8092/api/users?name=Ada----== Delete a userTo delete a user, send a `DELETE` request:[source,http]----DELETE http://localhost:8092/api/users/ada----
<!DOCTYPE html><html lang="en"><head><title>Manage users</title></head><body><h1>Manage users</h1><h2>Create a user</h2><p>To create a user, send a <code>POST</code> request to <code>/api/users</code>:</p><pre><code class="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</code></pre><h2>Look up a user</h2><p>To look up a user by name, send a <code>GET</code> request with a <code>name</code> parameter:</p><pre><code class="language-http">GET http://localhost:8092/api/users?name=Ada</code></pre><h2>Delete a user</h2><p>To delete a user, send a <code>DELETE</code> request:</p><pre><code class="language-http">DELETE http://localhost:8092/api/users/ada</code></pre></body></html>
Manage users============Create a user-------------To create a user, send a ``POST`` request to ``/api/users``:.. code-block:: httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}Look up a user--------------To look up a user by name, send a ``GET`` request with a ``name`` parameter:.. code-block:: httpGET http://localhost:8092/api/users?name=AdaDelete a user-------------To delete a user, send a ``DELETE`` request:.. code-block:: httpDELETE http://localhost:8092/api/users/ada
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="manage-users"><title>Manage users</title><taskbody><steps><step><cmd>To create a user, send a <codeph>POST</codeph> request to <codeph>/api/users</codeph>:</cmd><info><codeblock outputclass="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</codeblock></info></step><step><cmd>To look up a user by name, send a <codeph>GET</codeph> request with a <codeph>name</codeph> parameter:</cmd><info><codeblock outputclass="language-http">GET http://localhost:8092/api/users?name=Ada</codeblock></info></step><step><cmd>To delete a user, send a <codeph>DELETE</codeph> request:</cmd><info><codeblock outputclass="language-http">DELETE http://localhost:8092/api/users/ada</codeblock></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Manage users<!-- test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true} -->## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```<!-- test end --><!-- test {"description":"Look up a user by name.","detectSteps":true} -->## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```<!-- test end --><!-- test ignore start -->## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```<!-- test ignore end -->
# Manage users{/* test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true} */}## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```{/* test end */}{/* test {"description":"Look up a user by name.","detectSteps":true} */}## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```{/* test end */}{/* test ignore start */}## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```{/* test ignore end */}
= Manage users// (test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true})== Create a userTo create a user, send a `POST` request to `/api/users`:[source,http]----POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}----// (test end)// (test {"description":"Look up a user by name.","detectSteps":true})== Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:[source,http]----GET http://localhost:8092/api/users?name=Ada----// (test end)// (test ignore start)== Delete a userTo delete a user, send a `DELETE` request:[source,http]----DELETE http://localhost:8092/api/users/ada----// (test ignore end)
<!DOCTYPE html><html lang="en"><head><title>Manage users</title></head><body><h1>Manage users</h1><!-- test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true} --><h2>Create a user</h2><p>To create a user, send a <code>POST</code> request to <code>/api/users</code>:</p><pre><code class="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</code></pre><!-- test end --><!-- test {"description":"Look up a user by name.","detectSteps":true} --><h2>Look up a user</h2><p>To look up a user by name, send a <code>GET</code> request with a <code>name</code> parameter:</p><pre><code class="language-http">GET http://localhost:8092/api/users?name=Ada</code></pre><!-- test end --><!-- test ignore start --><h2>Delete a user</h2><p>To delete a user, send a <code>DELETE</code> request:</p><pre><code class="language-http">DELETE http://localhost:8092/api/users/ada</code></pre><!-- test ignore end --></body></html>
Manage users============.. test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true}Create a user-------------To create a user, send a ``POST`` request to ``/api/users``:.. code-block:: httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}.. test end.. test {"description":"Look up a user by name.","detectSteps":true}Look up a user--------------To look up a user by name, send a ``GET`` request with a ``name`` parameter:.. code-block:: httpGET http://localhost:8092/api/users?name=Ada.. test end.. test ignore startDelete a user-------------To delete a user, send a ``DELETE`` request:.. code-block:: httpDELETE http://localhost:8092/api/users/ada.. test ignore end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="manage-users"><title>Manage users</title><taskbody><steps><step><cmd>To create a user, send a <codeph>POST</codeph> request to <codeph>/api/users</codeph>:</cmd><info><data name="doc-detective" value='test {"testId":"structure-users-create","description":"Create a user.","detectSteps":true}'/><codeblock outputclass="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</codeblock><data name="doc-detective" value="test end"/></info></step><step><cmd>To look up a user by name, send a <codeph>GET</codeph> request with a <codeph>name</codeph> parameter:</cmd><info><data name="doc-detective" value='test {"description":"Look up a user by name.","detectSteps":true}'/><codeblock outputclass="language-http">GET http://localhost:8092/api/users?name=Ada</codeblock><data name="doc-detective" value="test end"/></info></step><step><cmd>To delete a user, send a <codeph>DELETE</codeph> request:</cmd><info><data name="doc-detective" value="test ignore start"/><codeblock outputclass="language-http">DELETE http://localhost:8092/api/users/ada</codeblock><data name="doc-detective" value="test ignore end"/></info></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Manage users<!-- test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false} -->## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```<!-- step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}} --><!-- test end --><!-- test {"description":"Look up a user by name.","detectSteps":false} -->## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```<!-- step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}} --><!-- test end --><!-- test ignore start -->## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```<!-- step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}} --><!-- test ignore end -->
# Manage users{/* test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false} */}## Create a userTo create a user, send a `POST` request to `/api/users`:```httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}```{/* step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}} */}{/* test end */}{/* test {"description":"Look up a user by name.","detectSteps":false} */}## Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:```httpGET http://localhost:8092/api/users?name=Ada```{/* step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}} */}{/* test end */}{/* test ignore start */}## Delete a userTo delete a user, send a `DELETE` request:```httpDELETE http://localhost:8092/api/users/ada```{/* step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}} */}{/* test ignore end */}
= Manage users// (test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false})== Create a userTo create a user, send a `POST` request to `/api/users`:[source,http]----POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}----// (step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}})// (test end)// (test {"description":"Look up a user by name.","detectSteps":false})== Look up a userTo look up a user by name, send a `GET` request with a `name` parameter:[source,http]----GET http://localhost:8092/api/users?name=Ada----// (step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}})// (test end)// (test ignore start)== Delete a userTo delete a user, send a `DELETE` request:[source,http]----DELETE http://localhost:8092/api/users/ada----// (step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}})// (test ignore end)
<!DOCTYPE html><html lang="en"><head><title>Manage users</title></head><body><h1>Manage users</h1><!-- test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false} --><h2>Create a user</h2><p>To create a user, send a <code>POST</code> request to <code>/api/users</code>:</p><pre><code class="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</code></pre><!-- step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}} --><!-- test end --><!-- test {"description":"Look up a user by name.","detectSteps":false} --><h2>Look up a user</h2><p>To look up a user by name, send a <code>GET</code> request with a <code>name</code> parameter:</p><pre><code class="language-http">GET http://localhost:8092/api/users?name=Ada</code></pre><!-- step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}} --><!-- test end --><!-- test ignore start --><h2>Delete a user</h2><p>To delete a user, send a <code>DELETE</code> request:</p><pre><code class="language-http">DELETE http://localhost:8092/api/users/ada</code></pre><!-- step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}} --><!-- test ignore end --></body></html>
Manage users============.. test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false}Create a user-------------To create a user, send a ``POST`` request to ``/api/users``:.. code-block:: httpPOST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}.. step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}}.. test end.. test {"description":"Look up a user by name.","detectSteps":false}Look up a user--------------To look up a user by name, send a ``GET`` request with a ``name`` parameter:.. code-block:: httpGET http://localhost:8092/api/users?name=Ada.. step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}}.. test end.. test ignore startDelete a user-------------To delete a user, send a ``DELETE`` request:.. code-block:: httpDELETE http://localhost:8092/api/users/ada.. step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}}.. test ignore end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="manage-users"><title>Manage users</title><taskbody><steps><step><cmd>To create a user, send a <codeph>POST</codeph> request to <codeph>/api/users</codeph>:</cmd><info><data name="doc-detective" value='test {"testId":"structure-users-create","description":"Create a user.","detectSteps":false}'/><codeblock outputclass="language-http">POST http://localhost:8092/api/usersContent-Type: application/json{"name": "Ada"}</codeblock><data name="doc-detective" value='step {"stepId":"create-user","description":"Create the user Ada.","httpRequest":{"url":"http://localhost:8092/api/users","method":"post","request":{"headers":{"Content-Type":"application/json"},"body":{"name":"Ada"}},"response":{"body":{"name":"Ada"}},"statusCodes":[200]}}'/><data name="doc-detective" value="test end"/></info></step><step><cmd>To look up a user by name, send a <codeph>GET</codeph> request with a <codeph>name</codeph> parameter:</cmd><info><data name="doc-detective" value='test {"description":"Look up a user by name.","detectSteps":false}'/><codeblock outputclass="language-http">GET http://localhost:8092/api/users?name=Ada</codeblock><data name="doc-detective" value='step {"stepId":"find-user","description":"Look up Ada by name.","httpRequest":{"url":"http://localhost:8092/api/users","method":"get","request":{"parameters":{"name":"Ada"}},"response":{"body":{"name":"Ada"}}}}'/><data name="doc-detective" value="test end"/></info></step><step><cmd>To delete a user, send a <codeph>DELETE</codeph> request:</cmd><info><data name="doc-detective" value="test ignore start"/><codeblock outputclass="language-http">DELETE http://localhost:8092/api/users/ada</codeblock><data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/users/ada","method":"delete"}}'/><data name="doc-detective" value="test ignore end"/></info></step></steps></taskbody></task>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","specId": "structure-users","description": "Create a user, then look it up by name.","tests": [{"testId": "structure-users-create","description": "Create a user.","steps": [{"stepId": "create-user","description": "Create the user Ada.","httpRequest": {"url": "http://localhost:8092/api/users","method": "post","request": {"headers": {"Content-Type": "application/json"},"body": {"name": "Ada"}},"response": {"body": {"name": "Ada"}},"statusCodes": [200]}}]},{"description": "Look up a user by name.","steps": [{"stepId": "find-user","description": "Look up Ada by name.","httpRequest": {"url": "http://localhost:8092/api/users","method": "get","request": {"parameters": {"name": "Ada"}},"response": {"body": {"name": "Ada"}}}}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsonspecId: structure-usersdescription: Create a user, then look it up by name.tests:- testId: structure-users-createdescription: Create a user.steps:- stepId: create-userdescription: Create the user Ada.httpRequest:url: http://localhost:8092/api/usersmethod: postrequest:headers:Content-Type: application/jsonbody:name: Adaresponse:body:name: AdastatusCodes: [200]- description: Look up a user by name.steps:- stepId: find-userdescription: Look up Ada by name.httpRequest:url: http://localhost:8092/api/usersmethod: getrequest:parameters:name: Adaresponse:body:name: Ada
IDs and descriptions
- A spec’s
specIdanddescriptionlive in a spec file. A documentation file’s spec ID is its path from where you run Doc Detective, such asdocs/manage-users.md. - A test without a
testIdgets one built from its spec ID and a hash of the test, such asstructure-users~1f7c37ef. The ID stays the same from run to run until the test itself changes. In the example, every inline file gives its second test the same hash. - Several tests in one file run in order. A
teststatement that starts before the previous test ends closes that test first. stepIdanddescriptionname a step in results. They don’t change what the step does.
Skip part of a page
A test ignore start statement and a test ignore end statement skip everything between them: step statements and detected steps alike. Here, the ignore block skips the delete request, because cleanup deletes the user after every run. A test end statement also ends an ignore block that’s still open.
| Format | Ignore block |
|---|---|
| Markdown | <!-- test ignore start --> and <!-- test ignore end --> |
| MDX | {/* test ignore start */} and {/* test ignore end */} |
| AsciiDoc | // (test ignore start) and // (test ignore end) |
| HTML | <!-- test ignore start --> and <!-- test ignore end --> |
| reStructuredText | .. test ignore start and .. test ignore end |
| DITA | <data name="doc-detective" value="test ignore start"/> and <data name="doc-detective" value="test ignore end"/> |
Set up and clean up the run
The example’s config runs one spec before every input and one after them all:
{"beforeAll": ["check-api.spec.json"],"afterAll": ["delete-user.spec.json"]}
{"tests": [{"testId": "structure-users-check-api","description": "Check that the API answers before any test runs.","steps": [{"httpRequest": {"url": "http://localhost:8092/status/200","statusCodes": [200]}}]}]}
{"tests": [{"testId": "structure-users-delete","description": "Delete the user that the tests created, after every test runs.","steps": [{"httpRequest": {"url": "http://localhost:8092/api/users/ada","method": "delete"}}]}]}
beforeAll and afterAll each take a path or a list of paths, relative to the config file. Their specs run as separate specs: first the beforeAll specs, then your inputs, then the afterAll specs. beforeAny is a deprecated name for beforeAll.
What detection finds
Each http code block becomes an httpRequest step with the block’s method, URL, headers, and body. Detection doesn’t add the response and statusCodes checks, so the inline and standalone variants hold them. The delete request sits in the ignore block, so detection skips it.
Run setup and cleanup steps around one test
This test uses the test fields before and after, with goTo and find. The setup spec signs in by setting a cookie, and the cleanup spec signs out.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the session cookie1. Start at [the cookies page](http://localhost:8092/cookies).2. Check that the page lists `structure-session=signed-in`.
# Check the session cookie1. Start at [the cookies page](http://localhost:8092/cookies).2. Check that the page lists `structure-session=signed-in`.
= Check the session cookie. Start at http://localhost:8092/cookies[the cookies page].. Check that the page lists `structure-session=signed-in`.
<!DOCTYPE html><html lang="en"><head><title>Check the session cookie</title></head><body><h1>Check the session cookie</h1><ol><li>Start at <a href="http://localhost:8092/cookies">the cookies page</a>.</li><li>Check that the page lists <code>structure-session=signed-in</code>.</li></ol></body></html>
Check the session cookie========================#. Start at `the cookies page <http://localhost:8092/cookies>`__.#. Check that the page lists ``structure-session=signed-in``.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="structure-before-after"><title>Check the session cookie</title><taskbody><steps><step><cmd>Start at <xref href="http://localhost:8092/cookies" scope="external" format="html">the cookies page</xref>.</cmd></step><step><cmd>Check that the page lists <codeph>structure-session=signed-in</codeph>.</cmd></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the session cookie<!-- test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"} -->1. Start at [the cookies page](http://localhost:8092/cookies).<!-- step {"goTo":"http://localhost:8092/cookies"} -->2. Check that the page lists `structure-session=signed-in`.<!-- step {"find":"structure-session=signed-in"} --><!-- test end -->
# Check the session cookie{/* test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"} */}1. Start at [the cookies page](http://localhost:8092/cookies).{/* step {"goTo":"http://localhost:8092/cookies"} */}2. Check that the page lists `structure-session=signed-in`.{/* step {"find":"structure-session=signed-in"} */}{/* test end */}
= Check the session cookie// (test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"}). Start at http://localhost:8092/cookies[the cookies page].+// (step {"goTo":"http://localhost:8092/cookies"}). Check that the page lists `structure-session=signed-in`.+// (step {"find":"structure-session=signed-in"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the session cookie</title></head><body><h1>Check the session cookie</h1><!-- test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"} --><ol><li>Start at <a href="http://localhost:8092/cookies">the cookies page</a>.<!-- step {"goTo":"http://localhost:8092/cookies"} --></li><li>Check that the page lists <code>structure-session=signed-in</code>.<!-- step {"find":"structure-session=signed-in"} --></li></ol><!-- test end --></body></html>
Check the session cookie========================.. test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"}#. Start at `the cookies page <http://localhost:8092/cookies>`__... step {"goTo":"http://localhost:8092/cookies"}#. Check that the page lists ``structure-session=signed-in``... step {"find":"structure-session=signed-in"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="structure-before-after"><title>Check the session cookie</title><taskbody><data name="doc-detective" value='test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":true,"before":"sign-in.spec.json","after":"sign-out.spec.json"}'/><steps><step><cmd>Start at <xref href="http://localhost:8092/cookies" scope="external" format="html">the cookies page</xref>.</cmd><info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/cookies"}'/></info></step><step><cmd>Check that the page lists <codeph>structure-session=signed-in</codeph>.</cmd><info><data name="doc-detective" value='step {"find":"structure-session=signed-in"}'/></info></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the session cookie<!-- test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"} -->1. Start at [the cookies page](http://localhost:8092/cookies).<!-- step {"goTo":"http://localhost:8092/cookies"} -->2. Check that the page lists `structure-session=signed-in`.<!-- step {"find":"structure-session=signed-in"} --><!-- test end -->
# Check the session cookie{/* test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"} */}1. Start at [the cookies page](http://localhost:8092/cookies).{/* step {"goTo":"http://localhost:8092/cookies"} */}2. Check that the page lists `structure-session=signed-in`.{/* step {"find":"structure-session=signed-in"} */}{/* test end */}
= Check the session cookie// (test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"}). Start at http://localhost:8092/cookies[the cookies page].+// (step {"goTo":"http://localhost:8092/cookies"}). Check that the page lists `structure-session=signed-in`.+// (step {"find":"structure-session=signed-in"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the session cookie</title></head><body><h1>Check the session cookie</h1><!-- test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"} --><ol><li>Start at <a href="http://localhost:8092/cookies">the cookies page</a>.<!-- step {"goTo":"http://localhost:8092/cookies"} --></li><li>Check that the page lists <code>structure-session=signed-in</code>.<!-- step {"find":"structure-session=signed-in"} --></li></ol><!-- test end --></body></html>
Check the session cookie========================.. test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"}#. Start at `the cookies page <http://localhost:8092/cookies>`__... step {"goTo":"http://localhost:8092/cookies"}#. Check that the page lists ``structure-session=signed-in``... step {"find":"structure-session=signed-in"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="structure-before-after"><title>Check the session cookie</title><taskbody><data name="doc-detective" value='test {"testId":"structure-before-after","description":"Check the session cookie while signed in.","detectSteps":false,"before":"sign-in.spec.json","after":"sign-out.spec.json"}'/><steps><step><cmd>Start at <xref href="http://localhost:8092/cookies" scope="external" format="html">the cookies page</xref>.</cmd><info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/cookies"}'/></info></step><step><cmd>Check that the page lists <codeph>structure-session=signed-in</codeph>.</cmd><info><data name="doc-detective" value='step {"find":"structure-session=signed-in"}'/></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": "structure-before-after","description": "Check the session cookie while signed in.","before": "sign-in.spec.json","after": "sign-out.spec.json","steps": [{"goTo": "http://localhost:8092/cookies"},{"find": "structure-session=signed-in"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-before-afterdescription: Check the session cookie while signed in.before: sign-in.spec.jsonafter: sign-out.spec.jsonsteps:- goTo: http://localhost:8092/cookies- find: structure-session=signed-in
before and after each name one spec file, relative to the file that names them: a spec, or a document with an inline test statement. Doc Detective uses the steps of the first test in that file. It runs them in the same context as the test, so the test shares their browser and cookies. The before steps run first. The after steps run last, even when a step of the test fails.
The setup and cleanup specs:
{"tests": [{"testId": "structure-before-after-sign-in","description": "Sign in by setting a session cookie.","steps": [{"goTo": "http://localhost:8092/cookies/set/structure-session/signed-in"}]}]}
{"tests": [{"testId": "structure-before-after-sign-out","description": "Sign out by replacing the session cookie.","steps": [{"goTo": "http://localhost:8092/cookies/set/structure-session/signed-out"},{"goTo": "http://localhost:8092/cookies"},{"find": "structure-session=signed-out"}]}]}
What detection finds
Detection adds a checkLink step for the link, after the sign-in steps. Code spans aren’t detected, so the detected variants carry goTo and find statements, and they still open the page with detection off.
Show when a procedure last passed
This procedure uses goTo and find, the test field badge, and a meta statement with a verified-by entry.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
DITA
# Open the elements demo1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Common HTML Elements**.
# Open the elements demo1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Common HTML Elements**.
= Open the elements demo. Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Common HTML Elements*.
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Common HTML Elements</strong>.</li></ol></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="open-elements-demo"><title>Open the elements demo</title><taskbody><steps><step><cmd>Open <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref>.</cmd></step><step><cmd>Check that the page shows <b>Common HTML Elements</b>.</cmd></step></steps></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
DITA
# Open the elements demo<!-- meta sha256-2c43adc88032c813a7b769ad065b7a1b3409a2b832b4fd6f383c74ee098dc688 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} --><!-- test {"testId":"structure-verified","badge":true,"detectSteps":true} -->1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Common HTML Elements**.<!-- test end -->
# Open the elements demo{/* meta sha256-50ec3ed54576a324df056ebe83f8c5e732eecceb5f6808dce7dd318b6682f649 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} */}{/* test {"testId":"structure-verified","badge":true,"detectSteps":true} */}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Common HTML Elements**.{/* test end */}
= Open the elements demo// (meta sha256-4eead6e9abcb406109bd6f86b1ada6469128bf039c5edb5696205b6e84325340 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"})// (test {"testId":"structure-verified","badge":true,"detectSteps":true}). Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Common HTML Elements*.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!-- meta sha256-2c43adc88032c813a7b769ad065b7a1b3409a2b832b4fd6f383c74ee098dc688 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} --><!-- test {"testId":"structure-verified","badge":true,"detectSteps":true} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Common HTML Elements</strong>.</li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="open-elements-demo"><title>Open the elements demo</title><taskbody><data name="manni-meta" value='sha256-a853bc6ca7c9305015cb6314bde3a09cf4143604e4b90d4cc7305f1bd9410cf8 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"}'/><data name="doc-detective" value='test {"testId":"structure-verified","badge":true,"detectSteps":true}'/><steps><step><cmd>Open <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref>.</cmd></step><step><cmd>Check that the page shows <b>Common HTML Elements</b>.</cmd></step></steps><data name="doc-detective" value="test end"/></taskbody></task>
Markdown
MDX
AsciiDoc
HTML
DITA
# Open the elements demo<!-- meta sha256-e4518ea0d2c15c415f4ac3e633042cde2a06799560a42082525ddfa7d558378b {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} --><!-- test {"testId":"structure-verified","badge":true,"detectSteps":false} -->1. Open [the elements demo](http://localhost:8092/index.html).<!-- step {"goTo":"http://localhost:8092/index.html"} -->2. Check that the page shows **Common HTML Elements**.<!-- step {"find":"Common HTML Elements"} --><!-- test end -->
# Open the elements demo{/* meta sha256-39a5e05cbc38b0fdd07b00dd6401f5d7d097bab51fb9cfad4a55948dd6c82c38 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} */}{/* test {"testId":"structure-verified","badge":true,"detectSteps":false} */}1. Open [the elements demo](http://localhost:8092/index.html).{/* step {"goTo":"http://localhost:8092/index.html"} */}2. Check that the page shows **Common HTML Elements**.{/* step {"find":"Common HTML Elements"} */}{/* test end */}
= Open the elements demo// (meta sha256-b366b803ea9449127ae3b836e7ebd3fa9130115faad7279cf36ca2fc5f514cf4 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"})image:https://img.shields.io/badge/Last_verified-2026--11--27-brightgreen[Last verified 2026-11-27]// (test {"testId":"structure-verified","badge":true,"detectSteps":false}). Open http://localhost:8092/index.html[the elements demo].+// (step {"goTo":"http://localhost:8092/index.html"}). Check that the page shows *Common HTML Elements*.+// (step {"find":"Common HTML Elements"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!-- meta sha256-d32fa563caa5db9fd13bb42caeb7703eb4ab1d653869b39f9253eabba4a45229 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"} --><img src="https://img.shields.io/badge/Last_verified-2026--11--27-brightgreen" alt="Last verified 2026-11-27"><!-- test {"testId":"structure-verified","badge":true,"detectSteps":false} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.<!-- step {"goTo":"http://localhost:8092/index.html"} --></li><li>Check that the page shows <strong>Common HTML Elements</strong>.<!-- step {"find":"Common HTML Elements"} --></li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="open-elements-demo"><title>Open the elements demo</title><taskbody><data name="manni-meta" value='sha256-fb9d69b988d52af10ffdb83f9bfc19634cae5ce90b73cebcbfb8d4df029b5059 {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-27"}],"last-verified":"2026-11-27"}'/><image href="https://img.shields.io/badge/Last_verified-2026--11--27-brightgreen"><alt>Last verified 2026-11-27</alt></image><data name="doc-detective" value='test {"testId":"structure-verified","badge":true,"detectSteps":false}'/><steps><step><cmd>Open <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref>.</cmd><info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/index.html"}'/></info></step><step><cmd>Check that the page shows <b>Common HTML Elements</b>.</cmd><info><data name="doc-detective" value='step {"find":"Common HTML Elements"}'/></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": "structure-verified","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Common HTML Elements"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-verifiedsteps:- goTo: http://localhost:8092/index.html- find: Common HTML Elements
After a passing run, Doc Detective fills in the meta statement and writes a badge above the test statement, in the same comment style:
<!-- meta sha256-97f2… {"verified-by":[{"tool":"doc-detective","check":"structure-verified","version":"5.7.0","passed":"2026-11-26"}],"last-verified":"2026-11-26"} --><!-- test {"testId":"structure-verified","badge":true,"detectSteps":false} -->
AsciiDoc gets an image: macro, HTML an <img> tag, and DITA an <image> element. The check names the test’s testId. A spec file has no line above a test, so the standalone spec can’t hold a badge. A meta statement on a page can still name its testId.
What Doc Detective writes depends on the config field verification.write:
| Value | Writes |
|---|---|
"existing" (default) | Fills the verified-by entries and badges the pages already have. |
true | Also adds the entries. A passing inline test gets a meta statement and, when its test statement has none, a testId. A passing Markdown or MDX page gets a verified-by entry in its front matter. |
false | Nothing. |
The examples on this page set verification.write to false, so a run doesn’t change the files. To see a write, run a copy:
npx doc-detective --input inline.md --verification true
The example leaves out reStructuredText. Doc Detective doesn’t write into .rst files, so a badge and a meta statement have no effect there. For the full workflow, see Show a “Last verified on” date.
Where a statement came from
Each test and step in the results has a location: the line and the character offsets of its statement. Doc Detective fills it in. For the detected Markdown file, the test points at its test statement, and the goTo step at the link it came from:
{"testId": "structure-verified","location": { "line": 4, "startIndex": 112, "endIndex": 189 },"steps": [{"goTo": "http://localhost:8092/index.html","location": { "line": 6, "startIndex": 199, "endIndex": 252 }}]}
Include a shared check in a page
Each page includes a shared file that holds its own test, then runs a test of its own. It uses httpRequest, goTo, and find, and the config fields resolveIncludes and fileTypes with includeStatements.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
= Open the elements demoinclude::_check-status.adoc[]. Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Text Inputs*.
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Text Inputs</strong>.</li></ol></body></html>
Open the elements demo======================.. include:: _check-status.rst#. Open `the elements demo <http://localhost:8092/index.html>`_.#. Check that the page shows **Text Inputs**.
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"<!-- test {"testId":"structure-includes","detectSteps":true} -->1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.<!-- test end -->
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />{/* test {"testId":"structure-includes","detectSteps":true} */}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.{/* test end */}
= Open the elements demoinclude::_check-status.adoc[]// (test {"testId":"structure-includes","detectSteps":true}). Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Text Inputs*.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><!-- test {"testId":"structure-includes","detectSteps":true} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Text Inputs</strong>.</li></ol><!-- test end --></body></html>
Open the elements demo======================.. include:: _check-status.rst.. test {"testId":"structure-includes","detectSteps":true}#. Open `the elements demo <http://localhost:8092/index.html>`_.#. Check that the page shows **Text Inputs**... test end
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"<!-- test {"testId":"structure-includes","detectSteps":false} -->1. Open [the elements demo](http://localhost:8092/index.html).<!-- step {"goTo":"http://localhost:8092/index.html"} -->2. Check that the page shows **Text Inputs**.<!-- step {"find":"Text Inputs"} --><!-- test end -->
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />{/* test {"testId":"structure-includes","detectSteps":false} */}1. Open [the elements demo](http://localhost:8092/index.html).{/* step {"goTo":"http://localhost:8092/index.html"} */}2. Check that the page shows **Text Inputs**.{/* step {"find":"Text Inputs"} */}{/* test end */}
= Open the elements demoinclude::_check-status.adoc[]// (test {"testId":"structure-includes","detectSteps":false}). Open http://localhost:8092/index.html[the elements demo].+// (step {"goTo":"http://localhost:8092/index.html"}). Check that the page shows *Text Inputs*.+// (step {"find":"Text Inputs"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><!-- test {"testId":"structure-includes","detectSteps":false} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.<!-- step {"goTo":"http://localhost:8092/index.html"} --></li><li>Check that the page shows <strong>Text Inputs</strong>.<!-- step {"find":"Text Inputs"} --></li></ol><!-- test end --></body></html>
Open the elements demo======================.. include:: _check-status.rst.. test {"testId":"structure-includes","detectSteps":false}#. Open `the elements demo <http://localhost:8092/index.html>`_... step {"goTo":"http://localhost:8092/index.html"}#. Check that the page shows **Text Inputs**... step {"find":"Text Inputs"}.. test end
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-includes-status","steps": [{"httpRequest": {"url": "http://localhost:8092/status/200","statusCodes": [200]}}]},{"testId": "structure-includes","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Text Inputs"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-includes-statussteps:- httpRequest:url: http://localhost:8092/status/200statusCodes: [200]- testId: structure-includessteps:- goTo: http://localhost:8092/index.html- find: Text Inputs
Each format includes its own shared file. The MDX page includes the Markdown file:
<!-- test {"testId":"structure-includes-status","detectSteps":false} -->Before you start, check that the API answers:```httpGET http://localhost:8092/status/200```<!-- step {"httpRequest":{"url":"http://localhost:8092/status/200","statusCodes":[200]}} --><!-- test end -->
| Format | Include |
|---|---|
| Markdown | --8<-- "_check-status.md" (MkDocs snippets) |
| MDX | <Markdown src="./_check-status.md" /> |
| AsciiDoc | include::_check-status.adoc[] |
| HTML | <!--#include file="_check-status.html" -->, through includeStatements |
| reStructuredText | .. include:: _check-status.rst |
With resolveIncludes on, the default, the shared test runs inside each page, before the page’s own test, so the standalone spec holds two tests. Its location gains a file field with the shared file’s absolute path. The shared file doesn’t run on its own. With resolveIncludes off, each page runs only its own test, and the shared file runs as its own spec.
HTML has no include syntax of its own, so the example’s config adds Apache-style server-side includes to HTML:
{"resolveIncludes": true,"fileTypes": ["markdown","asciidoc","rst","dita",{"extends": "html","extensions": "html","includeStatements": ["<!--#include\\s+file=\"([^\"]+)\"\\s*-->"]}]}
Each includeStatements entry is a regular expression whose first group is the path to include. extensions and includeStatements each take a string or a list. A fileTypes list replaces the default list, so it names the other formats too.
The example leaves out DITA. DITA reuses content through conrefs and keyrefs, which a later example covers. For every include syntax, see Test pages that include other files.
Include a shared check with mdBook or an MDX import
The same procedure, with the shared file included the way mdBook and MDX component frameworks include it. It uses httpRequest, goTo, find, and the config field resolveIncludes.
Prose
Detected
Inline
Standalone
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}<!-- test {"testId":"structure-include-imports","detectSteps":true} -->1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.<!-- test end -->
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />{/* test {"testId":"structure-include-imports","detectSteps":true} */}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.{/* test end */}
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}<!-- test {"testId":"structure-include-imports","detectSteps":false} -->1. Open [the elements demo](http://localhost:8092/index.html).<!-- step {"goTo":"http://localhost:8092/index.html"} -->2. Check that the page shows **Text Inputs**.<!-- step {"find":"Text Inputs"} --><!-- test end -->
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />{/* test {"testId":"structure-include-imports","detectSteps":false} */}1. Open [the elements demo](http://localhost:8092/index.html).{/* step {"goTo":"http://localhost:8092/index.html"} */}2. Check that the page shows **Text Inputs**.{/* step {"find":"Text Inputs"} */}{/* test end */}
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-include-imports-status","steps": [{"httpRequest": {"url": "http://localhost:8092/status/200","statusCodes": [200]}}]},{"testId": "structure-include-imports","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Text Inputs"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-include-imports-statussteps:- httpRequest:url: http://localhost:8092/status/200statusCodes: [200]- testId: structure-include-importssteps:- goTo: http://localhost:8092/index.html- find: Text Inputs
| Format | Include |
|---|---|
| Markdown | {{#include _check-status.md}} (mdBook) |
| MDX | import CheckStatus from './_check-status.md';, then <CheckStatus /> (Docusaurus, Mintlify) |
Doc Detective knows both forms, so the example’s config only turns resolveIncludes on. An MDX import counts as an include only where the page renders the component. An import with no matching component tag includes nothing.
Test the topics in a DITA map
This DITA topic uses a key that its map defines. It uses goTo, find, and the config field processDitaMaps.
Prose
Inline
Standalone
DITA
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="find-selection-elements"><title>Find the selection elements</title><taskbody><steps><step><cmd>Open <xref keyref="elements-demo">the elements demo</xref>.</cmd></step><step><cmd>Check that the page shows <b>Selection Elements</b>.</cmd></step></steps></taskbody></task>
DITA
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"><task id="find-selection-elements"><title>Find the selection elements</title><taskbody><data name="doc-detective" value='test {"testId":"structure-dita-map","detectSteps":false}'/><steps><step><cmd>Open <xref keyref="elements-demo">the elements demo</xref>.</cmd><info><data name="doc-detective" value='step {"goTo":"http://localhost:8092/index.html"}'/></info></step><step><cmd>Check that the page shows <b>Selection Elements</b>.</cmd><info><data name="doc-detective" value='step {"find":"Selection Elements"}'/></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": "structure-dita-map","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Selection Elements"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-dita-mapsteps:- goTo: http://localhost:8092/index.html- find: Selection Elements
The map defines the elements-demo key and references the topic:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"><map><title>Elements demo guide</title><keydef keys="elements-demo" href="http://localhost:8092/index.html" scope="external" format="html"/><topicref href="inline.dita"/></map>
When an input is a .ditamap file, Doc Detective runs DITA-OT on it (dita -i <map> -f dita) and tests the resolved topics. The keyref becomes a link with the key’s URL, as a reader sees it. This needs the dita command on your PATH:
npx doc-detective --input structure.ditamap
Without the dita command, Doc Detective logs an error and skips the map. When you pass the topic or a folder, Doc Detective reads the topic as written, with its keyref unresolved. The inline steps name their URL, so they run either way.
processDitaMaps is true by default, and the example’s config sets it explicitly. To read a map as a plain DITA file instead, without DITA-OT, turn it off:
{"processDitaMaps": false}
The example leaves out detected tests. A detected goTo comes from a link’s href, and an unresolved keyref has none, so detection depends on whether DITA-OT ran. The example leaves out the other formats, which have no maps.
detectSteps permutations
Each example checks two links. Its config sets detectSteps, and its test statement sets detectSteps or leaves it out. Detection runs only when both allow it. A test statement can turn detection off, but it can’t turn detection on when the config has it off. When detection runs, each link becomes a checkLink step beside the inline step, so the test checks each link twice. These examples have prose and inline variants only.
true in config, unset in the test
Varies: detectSteps · Value: config true, test unset · Effect: the test inherits detection, so each link gets a detected step and an inline step.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-unset"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-true-test-unset"} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-true-test-unset"} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-true-test-unset"}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-true-test-unset"} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-true-test-unset"}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-unset"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-true-test-unset"}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-true-test-unset","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-true-test-unsetsteps:- &a1checkLink: http://localhost:8092/index.html- *a1- &a2checkLink: http://localhost:8092/type-echo.html- *a2
true in config, true in the test
Varies: detectSteps · Value: config true, test true · Effect: detection runs, so each link gets a detected step and an inline step.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-true"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-true-test-true","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-true-test-true","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-true-test-truesteps:- &a1checkLink: http://localhost:8092/index.html- *a1- &a2checkLink: http://localhost:8092/type-echo.html- *a2
true in config, false in the test
Varies: detectSteps · Value: config true, test false · Effect: the test turns detection off, so only the inline steps run.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-false"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-true-test-false"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-true-test-false","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-true-test-false","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-true-test-falsesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
false in config, unset in the test
Varies: detectSteps · Value: config false, test unset · Effect: the test inherits detection off, so only the inline steps run.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-unset"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-false-test-unset"} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-false-test-unset"} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-false-test-unset"}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-false-test-unset"} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-false-test-unset"}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-unset"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-false-test-unset"}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-false-test-unset","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-false-test-unsetsteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
false in config, true in the test
Varies: detectSteps · Value: config false, test true · Effect: detection stays off, because a test can’t turn on what the config turned off.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-true"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-false-test-true","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-false-test-true","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-false-test-truesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
false in config, false in the test
Varies: detectSteps · Value: config false, test false · Effect: detection stays off, so only the inline steps run.
Prose
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-false"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-detectsteps-config-false-test-false"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-detectsteps-config-false-test-false","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-detectsteps-config-false-test-false","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-detectsteps-config-false-test-falsesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
testId permutations
testId: "structure-testid-set"
Varies: test.testId · Value: "structure-testid-set" · Effect: results and verified-by entries name the test by this ID.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-set"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-testid-set","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-testid-set","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"testId":"structure-testid-set","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-testid-set","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-testid-set","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-set"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-testid-set","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-testid-set","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-testid-set","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-testid-set","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-testid-set","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-testid-set","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-set"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-testid-set","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-testid-set","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-testid-setsteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
testId omitted
Varies: test.testId · Value: omitted · Effect: the ID joins the spec ID and a hash of the test, such as <path>~92b45990.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-omitted"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-omitted"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testid-omitted"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- steps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
Tests per file permutations
One test
Varies: tests per file · Value: one · Effect: all three checks run in one test, so a failure stops the checks after it.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-one"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-tests-one","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-tests-one","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* test end */}
= Check the demo pages// (test {"testId":"structure-tests-one","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.. Check that http://localhost:8092/status/200[the status endpoint] answers.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-tests-one","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-tests-one","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-one"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-tests-one","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-tests-one","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} -->3. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-tests-one","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}3. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-tests-one","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"}). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-tests-one","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-tests-one","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-one"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-tests-one","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-tests-one","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"},{"checkLink": "http://localhost:8092/status/200"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-tests-onesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html- checkLink: http://localhost:8092/status/200
Several tests
Varies: tests per file · Value: two · Effect: each section runs as its own test, so a failure in one doesn’t stop the other.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages== Pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.== API. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><h2>API</h2><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================Pages-----#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.API---#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-several"><title>Check the demo pages</title><body><section><title>Pages</title><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></section><section><title>API</title><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-tests-several-pages","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->## API<!-- test {"testId":"structure-tests-several-api","detectSteps":true} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- test end -->
# Check the demo pages## Pages{/* test {"testId":"structure-tests-several-pages","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}## API{/* test {"testId":"structure-tests-several-api","detectSteps":true} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* test end */}
= Check the demo pages== Pages// (test {"testId":"structure-tests-several-pages","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)== API// (test {"testId":"structure-tests-several-api","detectSteps":true}). Check that http://localhost:8092/status/200[the status endpoint] answers.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-tests-several-pages","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --><h2>API</h2><!-- test {"testId":"structure-tests-several-api","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol><!-- test end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-tests-several-pages","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test endAPI---.. test {"testId":"structure-tests-several-api","detectSteps":true}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-several"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-tests-several-pages","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-tests-several-api","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-tests-several-pages","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->## API<!-- test {"testId":"structure-tests-several-api","detectSteps":false} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --><!-- test end -->
# Check the demo pages## Pages{/* test {"testId":"structure-tests-several-pages","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}## API{/* test {"testId":"structure-tests-several-api","detectSteps":false} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}{/* test end */}
= Check the demo pages== Pages// (test {"testId":"structure-tests-several-pages","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)== API// (test {"testId":"structure-tests-several-api","detectSteps":false}). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-tests-several-pages","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --><h2>API</h2><!-- test {"testId":"structure-tests-several-api","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-tests-several-pages","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test endAPI---.. test {"testId":"structure-tests-several-api","detectSteps":false}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-tests-several"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-tests-several-pages","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-tests-several-api","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-tests-several-pages","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]},{"testId": "structure-tests-several-api","steps": [{"checkLink": "http://localhost:8092/status/200"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-tests-several-pagessteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html- testId: structure-tests-several-apisteps:- checkLink: http://localhost:8092/status/200
test end permutations
test end explicit
Varies: test end statement · Value: present · Effect: each test ends where its test end statement sits.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages== Pages. Check that http://localhost:8092/index.html[the elements demo] loads.== API. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><h2>API</h2><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================Pages-----#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.API---#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-explicit"><title>Check the demo pages</title><body><section><title>Pages</title><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol></section><section><title>API</title><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-testend-explicit-pages","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- test end -->## API<!-- test {"testId":"structure-testend-explicit-api","detectSteps":true} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- test end -->
# Check the demo pages## Pages{/* test {"testId":"structure-testend-explicit-pages","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* test end */}## API{/* test {"testId":"structure-testend-explicit-api","detectSteps":true} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* test end */}
= Check the demo pages== Pages// (test {"testId":"structure-testend-explicit-pages","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.// (test end)== API// (test {"testId":"structure-testend-explicit-api","detectSteps":true}). Check that http://localhost:8092/status/200[the status endpoint] answers.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-testend-explicit-pages","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><!-- test end --><h2>API</h2><!-- test {"testId":"structure-testend-explicit-api","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol><!-- test end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-testend-explicit-pages","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... test endAPI---.. test {"testId":"structure-testend-explicit-api","detectSteps":true}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-explicit"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-testend-explicit-pages","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol><data name="doc-detective" value="test end"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-testend-explicit-api","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol><data name="doc-detective" value="test end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-testend-explicit-pages","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --><!-- test end -->## API<!-- test {"testId":"structure-testend-explicit-api","detectSteps":false} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --><!-- test end -->
# Check the demo pages## Pages{/* test {"testId":"structure-testend-explicit-pages","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}{/* test end */}## API{/* test {"testId":"structure-testend-explicit-api","detectSteps":false} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}{/* test end */}
= Check the demo pages== Pages// (test {"testId":"structure-testend-explicit-pages","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"})// (test end)== API// (test {"testId":"structure-testend-explicit-api","detectSteps":false}). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-testend-explicit-pages","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li></ol><!-- test end --><h2>API</h2><!-- test {"testId":"structure-testend-explicit-api","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-testend-explicit-pages","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}.. test endAPI---.. test {"testId":"structure-testend-explicit-api","detectSteps":false}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-explicit"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-testend-explicit-pages","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li></ol><data name="doc-detective" value="test end"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-testend-explicit-api","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol><data name="doc-detective" value="test end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-testend-explicit-pages","steps": [{"checkLink": "http://localhost:8092/index.html"}]},{"testId": "structure-testend-explicit-api","steps": [{"checkLink": "http://localhost:8092/status/200"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-testend-explicit-pagessteps:- checkLink: http://localhost:8092/index.html- testId: structure-testend-explicit-apisteps:- checkLink: http://localhost:8092/status/200
test end implied
Varies: test end statement · Value: omitted · Effect: the next test statement ends the previous test, and the end of the file ends the last one.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages== Pages. Check that http://localhost:8092/index.html[the elements demo] loads.== API. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><h2>API</h2><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================Pages-----#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.API---#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-implied"><title>Check the demo pages</title><body><section><title>Pages</title><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol></section><section><title>API</title><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-testend-implied-pages","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API<!-- test {"testId":"structure-testend-implied-api","detectSteps":true} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages## Pages{/* test {"testId":"structure-testend-implied-pages","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API{/* test {"testId":"structure-testend-implied-api","detectSteps":true} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages== Pages// (test {"testId":"structure-testend-implied-pages","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.== API// (test {"testId":"structure-testend-implied-api","detectSteps":true}). Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-testend-implied-pages","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><h2>API</h2><!-- test {"testId":"structure-testend-implied-api","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-testend-implied-pages","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.API---.. test {"testId":"structure-testend-implied-api","detectSteps":true}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-implied"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-testend-implied-pages","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-testend-implied-api","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-testend-implied-pages","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->## API<!-- test {"testId":"structure-testend-implied-api","detectSteps":false} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} -->
# Check the demo pages## Pages{/* test {"testId":"structure-testend-implied-pages","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}## API{/* test {"testId":"structure-testend-implied-api","detectSteps":false} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}
= Check the demo pages== Pages// (test {"testId":"structure-testend-implied-pages","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"})== API// (test {"testId":"structure-testend-implied-api","detectSteps":false}). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-testend-implied-pages","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li></ol><h2>API</h2><!-- test {"testId":"structure-testend-implied-api","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-testend-implied-pages","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}API---.. test {"testId":"structure-testend-implied-api","detectSteps":false}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-testend-implied"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-testend-implied-pages","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li></ol></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-testend-implied-api","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-testend-implied-pages","steps": [{"checkLink": "http://localhost:8092/index.html"}]},{"testId": "structure-testend-implied-api","steps": [{"checkLink": "http://localhost:8092/status/200"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-testend-implied-pagessteps:- checkLink: http://localhost:8092/index.html- testId: structure-testend-implied-apisteps:- checkLink: http://localhost:8092/status/200
Ignore block permutations
Around a step statement
Varies: ignore block placement · Value: around one step statement · Effect: the inline variant skips that step, but detection still finds the link before the block.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-step"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-ignore-step","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test ignore start --><!-- test ignore end --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-ignore-step","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test ignore start */}{/* test ignore end */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-ignore-step","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (test ignore start)+// (test ignore end)// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-ignore-step","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- test ignore start --><!-- test ignore end --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-ignore-step","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test ignore start.. test ignore end.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-step"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-ignore-step","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value="test ignore start"/><data name="doc-detective" value="test ignore end"/></li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-ignore-step","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test ignore start --><!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test ignore end --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-ignore-step","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test ignore start */}{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test ignore end */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-ignore-step","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (test ignore start)+// (step {"checkLink":"http://localhost:8092/type-echo.html"})+// (test ignore end)// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-ignore-step","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- test ignore start --><!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test ignore end --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-ignore-step","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test ignore start.. step {"checkLink":"http://localhost:8092/type-echo.html"}.. test ignore end.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-step"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-ignore-step","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value="test ignore start"/><data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/><data name="doc-detective" value="test ignore end"/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-ignore-step","steps": [{"checkLink": "http://localhost:8092/index.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-ignore-stepsteps:- checkLink: http://localhost:8092/index.html
Around a list item
Varies: ignore block placement · Value: around the second list item · Effect: both variants skip the item’s link and step. The items around it still run.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.3. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-list-item"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-ignore-list-item","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- test ignore start -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test ignore end -->3. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-ignore-list-item","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* test ignore start */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test ignore end */}3. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* test end */}
= Check the demo pages// (test {"testId":"structure-ignore-list-item","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (test ignore start). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (test ignore end). Check that http://localhost:8092/status/200[the status endpoint] answers.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-ignore-list-item","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- test ignore start --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- test ignore end --></li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-ignore-list-item","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... test ignore start#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test ignore end#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-list-item"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-ignore-list-item","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value="test ignore start"/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value="test ignore end"/></li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-ignore-list-item","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --><!-- test ignore start -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test ignore end -->3. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-ignore-list-item","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}{/* test ignore start */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test ignore end */}3. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-ignore-list-item","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"})+// (test ignore start). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})+// (test ignore end). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-ignore-list-item","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --><!-- test ignore start --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test ignore end --></li><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-ignore-list-item","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}.. test ignore start#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test ignore end#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-list-item"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-ignore-list-item","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/><data name="doc-detective" value="test ignore start"/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/><data name="doc-detective" value="test ignore end"/></li><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-ignore-list-item","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/status/200"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-ignore-list-itemsteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/status/200
Around a whole test
Varies: ignore block placement · Value: around the second test · Effect: the second test has no steps, so Doc Detective drops it.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
# Check the demo pages## Pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.## API1. Check that [the status endpoint](http://localhost:8092/status/200) answers.
= Check the demo pages== Pages. Check that http://localhost:8092/index.html[the elements demo] loads.== API. Check that http://localhost:8092/status/200[the status endpoint] answers.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><h2>API</h2><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol></body></html>
Check the demo pages====================Pages-----#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.API---#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-test"><title>Check the demo pages</title><body><section><title>Pages</title><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol></section><section><title>API</title><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-ignore-test-pages","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- test end --><!-- test ignore start -->## API<!-- test {"testId":"structure-ignore-test-api","detectSteps":true} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- test end --><!-- test ignore end -->
# Check the demo pages## Pages{/* test {"testId":"structure-ignore-test-pages","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* test end */}{/* test ignore start */}## API{/* test {"testId":"structure-ignore-test-api","detectSteps":true} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* test end */}{/* test ignore end */}
= Check the demo pages== Pages// (test {"testId":"structure-ignore-test-pages","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.// (test end)// (test ignore start)== API// (test {"testId":"structure-ignore-test-api","detectSteps":true}). Check that http://localhost:8092/status/200[the status endpoint] answers.// (test end)// (test ignore end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-ignore-test-pages","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li></ol><!-- test end --><!-- test ignore start --><h2>API</h2><!-- test {"testId":"structure-ignore-test-api","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.</li></ol><!-- test end --><!-- test ignore end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-ignore-test-pages","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... test end.. test ignore startAPI---.. test {"testId":"structure-ignore-test-api","detectSteps":true}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... test end.. test ignore end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-test"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-ignore-test-pages","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li></ol><data name="doc-detective" value="test end"/><data name="doc-detective" value="test ignore start"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-ignore-test-api","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.</li></ol><data name="doc-detective" value="test end"/><data name="doc-detective" value="test ignore end"/></section></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages## Pages<!-- test {"testId":"structure-ignore-test-pages","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --><!-- test end --><!-- test ignore start -->## API<!-- test {"testId":"structure-ignore-test-api","detectSteps":false} -->1. Check that [the status endpoint](http://localhost:8092/status/200) answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --><!-- test end --><!-- test ignore end -->
# Check the demo pages## Pages{/* test {"testId":"structure-ignore-test-pages","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}{/* test end */}{/* test ignore start */}## API{/* test {"testId":"structure-ignore-test-api","detectSteps":false} */}1. Check that [the status endpoint](http://localhost:8092/status/200) answers.{/* step {"checkLink":"http://localhost:8092/status/200"} */}{/* test end */}{/* test ignore end */}
= Check the demo pages== Pages// (test {"testId":"structure-ignore-test-pages","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"})// (test end)// (test ignore start)== API// (test {"testId":"structure-ignore-test-api","detectSteps":false}). Check that http://localhost:8092/status/200[the status endpoint] answers.+// (step {"checkLink":"http://localhost:8092/status/200"})// (test end)// (test ignore end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><h2>Pages</h2><!-- test {"testId":"structure-ignore-test-pages","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li></ol><!-- test end --><!-- test ignore start --><h2>API</h2><!-- test {"testId":"structure-ignore-test-api","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/status/200">the status endpoint</a> answers.<!-- step {"checkLink":"http://localhost:8092/status/200"} --></li></ol><!-- test end --><!-- test ignore end --></body></html>
Check the demo pages====================Pages-----.. test {"testId":"structure-ignore-test-pages","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}.. test end.. test ignore startAPI---.. test {"testId":"structure-ignore-test-api","detectSteps":false}#. Check that `the status endpoint <http://localhost:8092/status/200>`_ answers... step {"checkLink":"http://localhost:8092/status/200"}.. test end.. test ignore end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-ignore-test"><title>Check the demo pages</title><body><section><title>Pages</title><data name="doc-detective" value='test {"testId":"structure-ignore-test-pages","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li></ol><data name="doc-detective" value="test end"/><data name="doc-detective" value="test ignore start"/></section><section><title>API</title><data name="doc-detective" value='test {"testId":"structure-ignore-test-api","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/status/200" scope="external" format="html">the status endpoint</xref> answers.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/status/200"}'/></li></ol><data name="doc-detective" value="test end"/><data name="doc-detective" value="test ignore end"/></section></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-ignore-test-pages","steps": [{"checkLink": "http://localhost:8092/index.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-ignore-test-pagessteps:- checkLink: http://localhost:8092/index.html
A test end statement also ends an open ignore block, so in this example the test ignore end statement after it has no effect.
before and after permutations
These examples are standalone specs. A before or after field on an inline test statement works the same way. For both fields together, in every format, see Run setup and cleanup steps around one test.
before only
Varies: test.before · Value: "sign-in.spec.json" · Effect: the sign-in steps run first, in the test’s own browser, so the test sees the cookie they set.
Standalone
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-test-before","before": "sign-in.spec.json","steps": [{"goTo": "http://localhost:8092/cookies"},{"find": "structure-session=signed-in"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-test-beforebefore: sign-in.spec.jsonsteps:- goTo: http://localhost:8092/cookies- find: structure-session=signed-in
after only
Varies: test.after · Value: "sign-out.spec.json" · Effect: the sign-out steps run last, in the test’s own browser, even when a step of the test fails.
Standalone
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-test-after","after": "sign-out.spec.json","steps": [{"goTo": "http://localhost:8092/cookies/set/structure-session/signed-in"},{"goTo": "http://localhost:8092/cookies"},{"find": "structure-session=signed-in"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-test-afterafter: sign-out.spec.jsonsteps:- goTo: http://localhost:8092/cookies/set/structure-session/signed-in- goTo: http://localhost:8092/cookies- find: structure-session=signed-in
beforeAll and afterAll permutations
Each example’s config lists the server setup spec and one spec of its own. The shared config of these examples sets each field to a single path, the string form. For both lists together, see Create and look up users.
beforeAll list
Varies: beforeAll · Value: ["../../../test-setup/start-server.spec.json", "check-api.spec.json"] · Effect: both specs run, in order, before any input.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-beforeall-list"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-beforeall-list","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-beforeall-list","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"testId":"structure-beforeall-list","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-beforeall-list","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-beforeall-list","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-beforeall-list"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-beforeall-list","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-beforeall-list","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-beforeall-list","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-beforeall-list","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-beforeall-list","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-beforeall-list","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-beforeall-list"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-beforeall-list","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-beforeall-list","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-beforeall-liststeps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
afterAll list
Varies: afterAll · Value: ["check-api.spec.json", "../../../test-setup/stop-server.spec.json"] · Effect: both specs run, in order, after every input.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-afterall-list"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-afterall-list","detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-afterall-list","detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"testId":"structure-afterall-list","detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-afterall-list","detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-afterall-list","detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-afterall-list"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-afterall-list","detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-afterall-list","detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-afterall-list","detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-afterall-list","detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-afterall-list","detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-afterall-list","detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-afterall-list"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-afterall-list","detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-afterall-list","steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-afterall-liststeps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
resolveIncludes permutations
With resolveIncludes on, see Include a shared check in a page and Include a shared check with mdBook or an MDX import. Each page then runs two tests: the shared file’s test and its own.
| Include syntax | resolveIncludes: true | resolveIncludes: false |
|---|---|---|
MkDocs --8<-- | Shared test runs inside the page | Directive stays text |
mdBook {{#include}} | Shared test runs inside the page | Directive stays text |
Fern <Markdown src> | Shared test runs inside the page | Component isn’t read |
MDX import with a component | Shared test runs inside the page | Component isn’t read |
AsciiDoc include:: | Shared test runs inside the page | Directive stays text |
reStructuredText .. include:: | Shared test runs inside the page | Directive isn’t read |
includeStatements match | Shared test runs inside the page | Comment isn’t read |
resolveIncludes: false, built-in and custom syntax
Varies: resolveIncludes · Value: false · Effect: each page runs only its own test, and the shared file runs only when it’s an input itself.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
= Open the elements demoinclude::_check-status.adoc[]. Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Text Inputs*.
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Text Inputs</strong>.</li></ol></body></html>
Open the elements demo======================.. include:: _check-status.rst#. Open `the elements demo <http://localhost:8092/index.html>`_.#. Check that the page shows **Text Inputs**.
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"<!-- test {"testId":"structure-includes-resolve-false","detectSteps":true} -->1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.<!-- test end -->
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />{/* test {"testId":"structure-includes-resolve-false","detectSteps":true} */}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.{/* test end */}
= Open the elements demoinclude::_check-status.adoc[]// (test {"testId":"structure-includes-resolve-false","detectSteps":true}). Open http://localhost:8092/index.html[the elements demo].. Check that the page shows *Text Inputs*.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><!-- test {"testId":"structure-includes-resolve-false","detectSteps":true} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.</li><li>Check that the page shows <strong>Text Inputs</strong>.</li></ol><!-- test end --></body></html>
Open the elements demo======================.. include:: _check-status.rst.. test {"testId":"structure-includes-resolve-false","detectSteps":true}#. Open `the elements demo <http://localhost:8092/index.html>`_.#. Check that the page shows **Text Inputs**... test end
Markdown
MDX
AsciiDoc
HTML
reStructuredText
# Open the elements demo--8<-- "_check-status.md"<!-- test {"testId":"structure-includes-resolve-false","detectSteps":false} -->1. Open [the elements demo](http://localhost:8092/index.html).<!-- step {"goTo":"http://localhost:8092/index.html"} -->2. Check that the page shows **Text Inputs**.<!-- step {"find":"Text Inputs"} --><!-- test end -->
# Open the elements demo{{ lt }}Markdown src="./_check-status.md" />{/* test {"testId":"structure-includes-resolve-false","detectSteps":false} */}1. Open [the elements demo](http://localhost:8092/index.html).{/* step {"goTo":"http://localhost:8092/index.html"} */}2. Check that the page shows **Text Inputs**.{/* step {"find":"Text Inputs"} */}{/* test end */}
= Open the elements demoinclude::_check-status.adoc[]// (test {"testId":"structure-includes-resolve-false","detectSteps":false}). Open http://localhost:8092/index.html[the elements demo].+// (step {"goTo":"http://localhost:8092/index.html"}). Check that the page shows *Text Inputs*.+// (step {"find":"Text Inputs"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Open the elements demo</title></head><body><h1>Open the elements demo</h1><!--#include file="_check-status.html" --><!-- test {"testId":"structure-includes-resolve-false","detectSteps":false} --><ol><li>Open <a href="http://localhost:8092/index.html">the elements demo</a>.<!-- step {"goTo":"http://localhost:8092/index.html"} --></li><li>Check that the page shows <strong>Text Inputs</strong>.<!-- step {"find":"Text Inputs"} --></li></ol><!-- test end --></body></html>
Open the elements demo======================.. include:: _check-status.rst.. test {"testId":"structure-includes-resolve-false","detectSteps":false}#. Open `the elements demo <http://localhost:8092/index.html>`_... step {"goTo":"http://localhost:8092/index.html"}#. Check that the page shows **Text Inputs**... step {"find":"Text Inputs"}.. test end
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-includes-resolve-false","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Text Inputs"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-includes-resolve-falsesteps:- goTo: http://localhost:8092/index.html- find: Text Inputs
resolveIncludes: false, mdBook and MDX import
Varies: resolveIncludes · Value: false · Effect: each page runs only its own test, and the shared file runs only when it’s an input itself.
Prose
Detected
Inline
Standalone
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}<!-- test {"testId":"structure-include-imports-resolve-false","detectSteps":true} -->1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.<!-- test end -->
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />{/* test {"testId":"structure-include-imports-resolve-false","detectSteps":true} */}1. Open [the elements demo](http://localhost:8092/index.html).2. Check that the page shows **Text Inputs**.{/* test end */}
Markdown
MDX
# Open the elements demo{{#include _check-status.md}}<!-- test {"testId":"structure-include-imports-resolve-false","detectSteps":false} -->1. Open [the elements demo](http://localhost:8092/index.html).<!-- step {"goTo":"http://localhost:8092/index.html"} -->2. Check that the page shows **Text Inputs**.<!-- step {"find":"Text Inputs"} --><!-- test end -->
import CheckStatus from './_check-status.md';# Open the elements demo<CheckStatus />{/* test {"testId":"structure-include-imports-resolve-false","detectSteps":false} */}1. Open [the elements demo](http://localhost:8092/index.html).{/* step {"goTo":"http://localhost:8092/index.html"} */}2. Check that the page shows **Text Inputs**.{/* step {"find":"Text Inputs"} */}{/* test end */}
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-include-imports-resolve-false","steps": [{"goTo": "http://localhost:8092/index.html"},{"find": "Text Inputs"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-include-imports-resolve-falsesteps:- goTo: http://localhost:8092/index.html- find: Text Inputs
badge permutations
A badge appears only after a passing run that writes back. These examples use the default verification.write, "existing".
badge: true
Varies: test.badge · Value: true · Effect: a passing run writes a “Last verified” badge on the line above the test statement.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-true"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-badge-true","badge":true,"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-badge-true","badge":true,"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"testId":"structure-badge-true","badge":true,"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-badge-true","badge":true,"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-badge-true","badge":true,"detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-badge-true","badge":true,"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-badge-true","badge":true,"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-badge-true","badge":true,"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-badge-true","badge":true,"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-badge-true","badge":true,"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-badge-true","badge":true,"detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-badge-true","badge":true,"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-badge-true","badge": true,"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-badge-truebadge: truesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
In reStructuredText, badge has no effect.
badge: false
Varies: test.badge · Value: false · Effect: a passing run writes no badge, the same as leaving badge out.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
Check the demo pages====================#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-false"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-badge-false","badge":false,"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"testId":"structure-badge-false","badge":false,"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"testId":"structure-badge-false","badge":false,"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-badge-false","badge":false,"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-badge-false","badge":false,"detectSteps":true}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads.#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-false"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-badge-false","badge":false,"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
reStructuredText
DITA
# Check the demo pages<!-- test {"testId":"structure-badge-false","badge":false,"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"testId":"structure-badge-false","badge":false,"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"testId":"structure-badge-false","badge":false,"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"testId":"structure-badge-false","badge":false,"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
Check the demo pages====================.. test {"testId":"structure-badge-false","badge":false,"detectSteps":false}#. Check that `the elements demo <http://localhost:8092/index.html>`_ loads... step {"checkLink":"http://localhost:8092/index.html"}#. Check that `the type echo page <http://localhost:8092/type-echo.html>`_ loads... step {"checkLink":"http://localhost:8092/type-echo.html"}.. test end
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-badge-false"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"testId":"structure-badge-false","badge":false,"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-badge-false","badge": false,"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-badge-falsebadge: falsesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
verification.write permutations
Each example sets verification.write in its config and has a test statement with badge: true. The examples leave out reStructuredText, because Doc Detective doesn’t write into .rst files. To try a value without changing your files, run a copy.
verification.write: "existing"
Varies: verification.write · Value: "existing" · Effect: a passing run fills the meta statement and the badge the page already declares.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-existing"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} --><!-- test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} */}{/* test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]})// (test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} --><!-- test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-existing"><title>Check the demo pages</title><body><data name="manni-meta" value='{"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]}'/><data name="doc-detective" value='test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} --><!-- test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} */}{/* test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]})// (test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]} --><!-- test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-existing"><title>Check the demo pages</title><body><data name="manni-meta" value='{"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-existing"}]}'/><data name="doc-detective" value='test {"testId":"structure-verification-write-existing","badge":true,"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-verification-write-existing","badge": true,"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-verification-write-existingbadge: truesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
verification.write: true
Varies: verification.write · Value: true · Effect: a passing run adds a meta statement and writes the generated testId into the test statement.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-true"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- test {"badge":true,"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* test {"badge":true,"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (test {"badge":true,"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"badge":true,"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"badge":true,"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- test {"badge":true,"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* test {"badge":true,"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (test {"badge":true,"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- test {"badge":true,"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-true"><title>Check the demo pages</title><body><data name="doc-detective" value='test {"badge":true,"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"badge": true,"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- badge: truesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html
In Markdown and MDX, a passing run also adds a verified-by entry to the front matter.
verification.write: false
Varies: verification.write · Value: false · Effect: a run writes nothing, so the meta statement and the badge stay unchanged.
Prose
Detected
Inline
Standalone
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
# Check the demo pages1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.
= Check the demo pages. Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-false"><title>Check the demo pages</title><body><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} --><!-- test {"testId":"structure-verification-write-false","badge":true,"detectSteps":true} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- test end -->
# Check the demo pages{/* meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} */}{/* test {"testId":"structure-verification-write-false","badge":true,"detectSteps":true} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* test end */}
= Check the demo pages// (meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]})// (test {"testId":"structure-verification-write-false","badge":true,"detectSteps":true}). Check that http://localhost:8092/index.html[the elements demo] loads.. Check that http://localhost:8092/type-echo.html[the type echo page] loads.// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} --><!-- test {"testId":"structure-verification-write-false","badge":true,"detectSteps":true} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.</li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.</li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-false"><title>Check the demo pages</title><body><data name="manni-meta" value='{"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]}'/><data name="doc-detective" value='test {"testId":"structure-verification-write-false","badge":true,"detectSteps":true}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.</li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.</li></ol><data name="doc-detective" value="test end"/></body></topic>
Markdown
MDX
AsciiDoc
HTML
DITA
# Check the demo pages<!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} --><!-- test {"testId":"structure-verification-write-false","badge":true,"detectSteps":false} -->1. Check that [the elements demo](http://localhost:8092/index.html) loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} -->2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --><!-- test end -->
# Check the demo pages{/* meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} */}{/* test {"testId":"structure-verification-write-false","badge":true,"detectSteps":false} */}1. Check that [the elements demo](http://localhost:8092/index.html) loads.{/* step {"checkLink":"http://localhost:8092/index.html"} */}2. Check that [the type echo page](http://localhost:8092/type-echo.html) loads.{/* step {"checkLink":"http://localhost:8092/type-echo.html"} */}{/* test end */}
= Check the demo pages// (meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]})// (test {"testId":"structure-verification-write-false","badge":true,"detectSteps":false}). Check that http://localhost:8092/index.html[the elements demo] loads.+// (step {"checkLink":"http://localhost:8092/index.html"}). Check that http://localhost:8092/type-echo.html[the type echo page] loads.+// (step {"checkLink":"http://localhost:8092/type-echo.html"})// (test end)
<!DOCTYPE html><html lang="en"><head><title>Check the demo pages</title></head><body><h1>Check the demo pages</h1><!-- meta {"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]} --><!-- test {"testId":"structure-verification-write-false","badge":true,"detectSteps":false} --><ol><li>Check that <a href="http://localhost:8092/index.html">the elements demo</a> loads.<!-- step {"checkLink":"http://localhost:8092/index.html"} --></li><li>Check that <a href="http://localhost:8092/type-echo.html">the type echo page</a> loads.<!-- step {"checkLink":"http://localhost:8092/type-echo.html"} --></li></ol><!-- test end --></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"><topic id="structure-verification-write-false"><title>Check the demo pages</title><body><data name="manni-meta" value='{"verified-by":[{"tool":"doc-detective","check":"structure-verification-write-false"}]}'/><data name="doc-detective" value='test {"testId":"structure-verification-write-false","badge":true,"detectSteps":false}'/><ol><li>Check that <xref href="http://localhost:8092/index.html" scope="external" format="html">the elements demo</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/index.html"}'/></li><li>Check that <xref href="http://localhost:8092/type-echo.html" scope="external" format="html">the type echo page</xref> loads.<data name="doc-detective" value='step {"checkLink":"http://localhost:8092/type-echo.html"}'/></li></ol><data name="doc-detective" value="test end"/></body></topic>
JSON
YAML
{"$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json","tests": [{"testId": "structure-verification-write-false","badge": true,"steps": [{"checkLink": "http://localhost:8092/index.html"},{"checkLink": "http://localhost:8092/type-echo.html"}]}]}
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.jsontests:- testId: structure-verification-write-falsebadge: truesteps:- checkLink: http://localhost:8092/index.html- checkLink: http://localhost:8092/type-echo.html