> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Test routing, written as tests

> Short procedures that each route on one test result with `onPass`, `onFail`, `onWarning`, or `onSkip`, in every supported format.

Each example on this page varies one setting in a short procedure, shown as prose, detected tests, inline tests, and a standalone spec. For what each tab holds, see [Navigation and interaction](/reference/docs-as-tests/navigation-interaction).

Detection finds no steps in these procedures, because the URLs and commands sit in code. So every variant runs the same `step` statements, and the detected and inline files differ only in `detectSteps`.

An `onFail` or `onWarning` entry on a test that passes never applies. Those examples show the shape, and their effect says what happens when the entry applies.

## Test routing permutations

### `onPass`, `continue`

**Varies:** `test.onPass` · **Value:** `[{"continue": true}]` · **Effect:** the next test runs. This is the default after a pass.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-continue-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-continue-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-continue-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-continue-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-continue-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-api","onPass":[{"continue":true}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-continue-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onpass-continue-api",
      "onPass": [
        {
          "continue": true
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-continue-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-continue-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onpass-continue-api
    onPass:
      - continue: true
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onpass-continue-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onpass-continue-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onPass`, `stop: test`

**Varies:** `test.onPass` · **Value:** `[{"stop": "test"}]` · **Effect:** does nothing, because the test already finished. The next test runs.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-api","onPass":[{"stop":"test"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-test-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onpass-stop-test-api",
      "onPass": [
        {
          "stop": "test"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-stop-test-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-stop-test-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onpass-stop-test-api
    onPass:
      - stop: test
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onpass-stop-test-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onpass-stop-test-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onPass`, `stop: spec`

**Varies:** `test.onPass` · **Value:** `[{"stop": "spec"}]` · **Effect:** skips the spec's remaining tests after this one passes. The first test runs on macOS and Linux only, so on Windows the stop never applies and the other tests run.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-api","onPass":[{"stop":"spec"}],"runOn":[{"platforms":["mac","linux"]}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-stop-spec-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onpass-stop-spec-api",
      "onPass": [
        {
          "stop": "spec"
        }
      ],
      "runOn": [
        {
          "platforms": [
            "mac",
            "linux"
          ]
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-stop-spec-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-stop-spec-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onpass-stop-spec-api
    onPass:
      - stop: spec
    runOn:
      - platforms:
          - mac
          - linux
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onpass-stop-spec-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onpass-stop-spec-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onPass`, `goToTest`

**Varies:** `test.onPass` · **Value:** `[{"goToTest": "data-route-test-onpass-gototest-products"}]` · **Effect:** jumps to the products test, so the cart test doesn't run and isn't in the results.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onpass-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-api","onPass":[{"goToTest":"data-route-test-onpass-gototest-products"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onpass-gototest-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onpass-gototest-api",
      "onPass": [
        {
          "goToTest": "data-route-test-onpass-gototest-products"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-gototest-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onpass-gototest-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onpass-gototest-api
    onPass:
      - goToTest: data-route-test-onpass-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onpass-gototest-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onpass-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onFail`, `continue`

**Varies:** `test.onFail` · **Value:** `[{"continue": true}]` · **Effect:** applies only if the test fails, and runs the next test. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-continue-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-continue-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-continue-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-continue-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-continue-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-api","onFail":[{"continue":true}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-continue-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onfail-continue-api",
      "onFail": [
        {
          "continue": true
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-continue-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-continue-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onfail-continue-api
    onFail:
      - continue: true
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onfail-continue-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onfail-continue-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onFail`, `stop: test`

**Varies:** `test.onFail` · **Value:** `[{"stop": "test"}]` · **Effect:** applies only if the test fails, and does nothing more: the next test still runs. That's the default. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-api","onFail":[{"stop":"test"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-test-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onfail-stop-test-api",
      "onFail": [
        {
          "stop": "test"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-stop-test-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-stop-test-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onfail-stop-test-api
    onFail:
      - stop: test
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onfail-stop-test-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onfail-stop-test-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onFail`, `stop: spec`

**Varies:** `test.onFail` · **Value:** `[{"stop": "spec"}]` · **Effect:** applies only if the test fails, and skips the spec's remaining tests. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-api","onFail":[{"stop":"spec"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-stop-spec-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onfail-stop-spec-api",
      "onFail": [
        {
          "stop": "spec"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-stop-spec-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-stop-spec-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onfail-stop-spec-api
    onFail:
      - stop: spec
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onfail-stop-spec-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onfail-stop-spec-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onFail`, `goToTest`

**Varies:** `test.onFail` · **Value:** `[{"goToTest": "data-route-test-onfail-gototest-products"}]` · **Effect:** applies only if the test fails, and jumps to the products test. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onfail-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-api","onFail":[{"goToTest":"data-route-test-onfail-gototest-products"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onfail-gototest-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onfail-gototest-api",
      "onFail": [
        {
          "goToTest": "data-route-test-onfail-gototest-products"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-gototest-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onfail-gototest-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onfail-gototest-api
    onFail:
      - goToTest: data-route-test-onfail-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onfail-gototest-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onfail-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onWarning`, `continue`

**Varies:** `test.onWarning` · **Value:** `[{"continue": true}]` · **Effect:** applies only if the test ends with a warning, and runs the next test. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-continue">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-api","onWarning":[{"continue":true}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-continue-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onwarning-continue-api",
      "onWarning": [
        {
          "continue": true
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-continue-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-continue-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onwarning-continue-api
    onWarning:
      - continue: true
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onwarning-continue-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onwarning-continue-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onWarning`, `stop: test`

**Varies:** `test.onWarning` · **Value:** `[{"stop": "test"}]` · **Effect:** applies only if the test ends with a warning, and does nothing more. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-test">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-api","onWarning":[{"stop":"test"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-test-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onwarning-stop-test-api",
      "onWarning": [
        {
          "stop": "test"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-stop-test-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-stop-test-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onwarning-stop-test-api
    onWarning:
      - stop: test
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onwarning-stop-test-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onwarning-stop-test-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onWarning`, `stop: spec`

**Varies:** `test.onWarning` · **Value:** `[{"stop": "spec"}]` · **Effect:** applies only if the test ends with a warning, and skips the spec's remaining tests. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-stop-spec">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-api","onWarning":[{"stop":"spec"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-stop-spec-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onwarning-stop-spec-api",
      "onWarning": [
        {
          "stop": "spec"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-stop-spec-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-stop-spec-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onwarning-stop-spec-api
    onWarning:
      - stop: spec
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onwarning-stop-spec-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onwarning-stop-spec-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onWarning`, `goToTest`

**Varies:** `test.onWarning` · **Value:** `[{"goToTest": "data-route-test-onwarning-gototest-products"}]` · **Effect:** applies only if the test ends with a warning, and jumps to the products test. Here the test passes.

#### Prose

#### Markdown

**`prose.md`**

```markdown title="prose.md"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### MDX

**`prose.mdx`**

```mdx title="prose.mdx"
# Check the API, then the shop

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
```

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Check the API, then the shop

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.</li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Check the API, then the shop
============================

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

```markdown title="detected.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`detected.mdx`**

```mdx title="detected.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

```markdown title="inline.md"
# Check the API, then the shop

<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} -->

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
```

#### MDX

**`inline.mdx`**

```mdx title="inline.mdx"
# Check the API, then the shop

{/* test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} */}

## Check the API

1. Send a `GET` request to `http://localhost:8092/api/health`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
```

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Check the API, then the shop

// (test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false})

== Check the API

. Send a `+GET+` request to `+http://localhost:8092/api/health+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Check the API, then the shop</title></head>
<body>
<h1>Check the API, then the shop</h1>
<!-- test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false} -->
<h2>Check the API</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/health</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Check the API, then the shop
============================

.. test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false}

Check the API
-------------

#. Send a ``GET`` request to ``http://localhost:8092/api/health``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onwarning-gototest">
  <title>Check the API, then the shop</title>
  <body>
    <section>
      <title>Check the API</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-api","onWarning":[{"goToTest":"data-route-test-onwarning-gototest-products"}],"detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/health</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/health","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onwarning-gototest-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onwarning-gototest-api",
      "onWarning": [
        {
          "goToTest": "data-route-test-onwarning-gototest-products"
        }
      ],
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/health",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-gototest-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onwarning-gototest-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onwarning-gototest-api
    onWarning:
      - goToTest: data-route-test-onwarning-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/health
          method: get
  - testId: data-route-test-onwarning-gototest-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onwarning-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onSkip`, `continue`

**Varies:** `test.onSkip` · **Value:** `[{"continue": true}]` · **Effect:** on macOS and Linux the Windows test is skipped, and the next test runs. This is the default. On Windows every test runs.

#### Prose

#### Markdown

**`prose.md`**

````markdown title="prose.md"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### MDX

**`prose.mdx`**

````mdx title="prose.mdx"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Find Node.js, then check the API

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre></li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Find Node.js, then check the API
================================

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-continue">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock></li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

````markdown title="detected.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`detected.mdx`**

````mdx title="detected.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-continue-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-continue-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-continue">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":true}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

````markdown title="inline.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`inline.mdx`**

````mdx title="inline.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-continue-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-continue-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-continue-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-continue">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-windows","if":"$$platform == windows","onSkip":[{"continue":true}],"detectSteps":false}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-continue-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onskip-continue-windows",
      "if": "$$platform == windows",
      "onSkip": [
        {
          "continue": true
        }
      ],
      "steps": [
        {
          "runShell": "where node"
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-continue-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-continue-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onskip-continue-windows
    if: $$platform == windows
    onSkip:
      - continue: true
    steps:
      - runShell: where node
  - testId: data-route-test-onskip-continue-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onskip-continue-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onSkip`, `stop: test`

**Varies:** `test.onSkip` · **Value:** `[{"stop": "test"}]` · **Effect:** does nothing, because the skipped test already finished. The next test runs.

#### Prose

#### Markdown

**`prose.md`**

````markdown title="prose.md"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### MDX

**`prose.mdx`**

````mdx title="prose.mdx"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Find Node.js, then check the API

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre></li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Find Node.js, then check the API
================================

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-test">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock></li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

````markdown title="detected.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`detected.mdx`**

````mdx title="detected.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-test">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":true}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

````markdown title="inline.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`inline.mdx`**

````mdx title="inline.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-test">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-windows","if":"$$platform == windows","onSkip":[{"stop":"test"}],"detectSteps":false}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-test-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onskip-stop-test-windows",
      "if": "$$platform == windows",
      "onSkip": [
        {
          "stop": "test"
        }
      ],
      "steps": [
        {
          "runShell": "where node"
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-stop-test-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-stop-test-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onskip-stop-test-windows
    if: $$platform == windows
    onSkip:
      - stop: test
    steps:
      - runShell: where node
  - testId: data-route-test-onskip-stop-test-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onskip-stop-test-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onSkip`, `stop: spec`

**Varies:** `test.onSkip` · **Value:** `[{"stop": "spec"}]` · **Effect:** on macOS and Linux the Windows test is skipped, so the spec's remaining tests are skipped too. On Windows every test runs.

#### Prose

#### Markdown

**`prose.md`**

````markdown title="prose.md"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### MDX

**`prose.mdx`**

````mdx title="prose.mdx"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Find Node.js, then check the API

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre></li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Find Node.js, then check the API
================================

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-spec">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock></li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

````markdown title="detected.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`detected.mdx`**

````mdx title="detected.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-spec">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":true}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

````markdown title="inline.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`inline.mdx`**

````mdx title="inline.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-stop-spec">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-windows","if":"$$platform == windows","onSkip":[{"stop":"spec"}],"detectSteps":false}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-stop-spec-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onskip-stop-spec-windows",
      "if": "$$platform == windows",
      "onSkip": [
        {
          "stop": "spec"
        }
      ],
      "steps": [
        {
          "runShell": "where node"
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-stop-spec-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-stop-spec-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onskip-stop-spec-windows
    if: $$platform == windows
    onSkip:
      - stop: spec
    steps:
      - runShell: where node
  - testId: data-route-test-onskip-stop-spec-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onskip-stop-spec-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onSkip`, `goToTest`

**Varies:** `test.onSkip` · **Value:** `[{"goToTest": "data-route-test-onskip-gototest-products"}]` · **Effect:** on macOS and Linux the Windows test is skipped and jumps to the products test, so the cart test doesn't run. On Windows every test runs.

#### Prose

#### Markdown

**`prose.md`**

````markdown title="prose.md"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### MDX

**`prose.mdx`**

````mdx title="prose.mdx"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Find Node.js, then check the API

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre></li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Find Node.js, then check the API
================================

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-gototest">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock></li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

````markdown title="detected.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`detected.mdx`**

````mdx title="detected.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-gototest">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":true}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

````markdown title="inline.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`inline.mdx`**

````mdx title="inline.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-gototest">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-windows","if":"$$platform == windows","onSkip":[{"goToTest":"data-route-test-onskip-gototest-products"}],"detectSteps":false}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-gototest-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onskip-gototest-windows",
      "if": "$$platform == windows",
      "onSkip": [
        {
          "goToTest": "data-route-test-onskip-gototest-products"
        }
      ],
      "steps": [
        {
          "runShell": "where node"
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-gototest-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-gototest-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onskip-gototest-windows
    if: $$platform == windows
    onSkip:
      - goToTest: data-route-test-onskip-gototest-products
    steps:
      - runShell: where node
  - testId: data-route-test-onskip-gototest-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onskip-gototest-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```

### `onSkip` entry `if`

**Varies:** `test.onSkip` · **Value:** `[{"if": "$$platform != windows", "goToTest": "data-route-test-onskip-if-products"}]` · **Effect:** a test routing entry's `if` reads `$$platform`. It's true on macOS and Linux, where the Windows test is skipped.

#### Prose

#### Markdown

**`prose.md`**

````markdown title="prose.md"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### MDX

**`prose.mdx`**

````mdx title="prose.mdx"
# Find Node.js, then check the API

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
````

#### AsciiDoc

**`prose.adoc`**

```asciidoc title="prose.adoc"
= Find Node.js, then check the API

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
```

#### HTML

**`prose.html`**

```html title="prose.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre></li>
</ol>
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.</li>
</ol>
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.</li>
</ol>
</body>
</html>
```

#### reStructuredText

**`prose.rst`**

```rst title="prose.rst"
Find Node.js, then check the API
================================

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.
```

#### DITA

**`prose.dita`**

```xml title="prose.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-if">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock></li>
      </ol>
    </section>
    <section>
      <title>Check the cart</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.</li>
      </ol>
    </section>
    <section>
      <title>Check the products</title>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.</li>
      </ol>
    </section>
  </body>
</topic>
```

#### Detected

#### Markdown

**`detected.md`**

````markdown title="detected.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":true} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`detected.mdx`**

````mdx title="detected.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-if-products","detectSteps":true} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`detected.adoc`**

```asciidoc title="detected.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-if-cart","detectSteps":true})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-if-products","detectSteps":true})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`detected.html`**

```html title="detected.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":true} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":true} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`detected.rst`**

```rst title="detected.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-if-cart","detectSteps":true}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-if-products","detectSteps":true}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`detected.dita`**

```xml title="detected.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-if">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":true}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-cart","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-products","detectSteps":true}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Inline

#### Markdown

**`inline.md`**

````markdown title="inline.md"
# Find Node.js, then check the API

<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} -->

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   <!-- step {"runShell":"where node"} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} -->

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} -->

<!-- test end -->

<!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":false} -->

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} -->

<!-- test end -->
````

#### MDX

**`inline.mdx`**

````mdx title="inline.mdx"
# Find Node.js, then check the API

{/* test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} */}

## Find Node.js on Windows

1. Find the Node.js executable:

   ```shell
   where node
   ```
   {/* step {"runShell":"where node"} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} */}

## Check the cart

1. Send a `GET` request to `http://localhost:8092/api/carts`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} */}

{/* test end */}

{/* test {"testId":"data-route-test-onskip-if-products","detectSteps":false} */}

## Check the products

1. Send a `GET` request to `http://localhost:8092/api/products`.
   {/* step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} */}

{/* test end */}
````

#### AsciiDoc

**`inline.adoc`**

```asciidoc title="inline.adoc"
= Find Node.js, then check the API

// (test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false})

== Find Node.js on Windows

. Find the Node.js executable:
+
[source,shell]
----
where node
----
+
// (step {"runShell":"where node"})

// (test end)

// (test {"testId":"data-route-test-onskip-if-cart","detectSteps":false})

== Check the cart

. Send a `+GET+` request to `+http://localhost:8092/api/carts+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}})

// (test end)

// (test {"testId":"data-route-test-onskip-if-products","detectSteps":false})

== Check the products

. Send a `+GET+` request to `+http://localhost:8092/api/products+`.
+
// (step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}})

// (test end)
```

#### HTML

**`inline.html`**

```html title="inline.html"
<!DOCTYPE html>
<html lang="en">
<head><title>Find Node.js, then check the API</title></head>
<body>
<h1>Find Node.js, then check the API</h1>
<!-- test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false} -->
<h2>Find Node.js on Windows</h2>

<ol>
  <li>Find the Node.js executable:
    <pre><code class="language-shell">where node</code></pre>
    <!-- step {"runShell":"where node"} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-if-cart","detectSteps":false} -->
<h2>Check the cart</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/carts</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}} --></li>
</ol>
<!-- test end -->
<!-- test {"testId":"data-route-test-onskip-if-products","detectSteps":false} -->
<h2>Check the products</h2>

<ol>
  <li>Send a <code>GET</code> request to <code>http://localhost:8092/api/products</code>.
    <!-- step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}} --></li>
</ol>
<!-- test end -->
</body>
</html>
```

#### reStructuredText

**`inline.rst`**

```rst title="inline.rst"
Find Node.js, then check the API
================================

.. test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false}

Find Node.js on Windows
-----------------------

#. Find the Node.js executable:

   .. code-block:: shell

      where node

   .. step {"runShell":"where node"}

.. test end

.. test {"testId":"data-route-test-onskip-if-cart","detectSteps":false}

Check the cart
--------------

#. Send a ``GET`` request to ``http://localhost:8092/api/carts``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}

.. test end

.. test {"testId":"data-route-test-onskip-if-products","detectSteps":false}

Check the products
------------------

#. Send a ``GET`` request to ``http://localhost:8092/api/products``.

   .. step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}

.. test end
```

#### DITA

**`inline.dita`**

```xml title="inline.dita"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="data-route-test-onskip-if">
  <title>Find Node.js, then check the API</title>
  <body>
    <section>
      <title>Find Node.js on Windows</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-windows","if":"$$platform == windows","onSkip":[{"if":"$$platform != windows","goToTest":"data-route-test-onskip-if-products"}],"detectSteps":false}'/>
      <ol>
        <li>Find the Node.js executable:
          <codeblock outputclass="language-shell">where node</codeblock>
          <data name="doc-detective" value='step {"runShell":"where node"}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the cart</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-cart","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/carts</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/carts","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
    <section>
      <title>Check the products</title>
      <data name="doc-detective" value='test {"testId":"data-route-test-onskip-if-products","detectSteps":false}'/>
      <ol>
        <li>Send a <codeph>GET</codeph> request to <codeph>http://localhost:8092/api/products</codeph>.
          <data name="doc-detective" value='step {"httpRequest":{"url":"http://localhost:8092/api/products","method":"get"}}'/></li>
      </ol>
      <data name="doc-detective" value="test end"/>
    </section>
  </body>
</topic>
```

#### Standalone

#### JSON

**`standalone.spec.json`**

```json title="standalone.spec.json"
{
  "$schema": "https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json",
  "tests": [
    {
      "testId": "data-route-test-onskip-if-windows",
      "if": "$$platform == windows",
      "onSkip": [
        {
          "if": "$$platform != windows",
          "goToTest": "data-route-test-onskip-if-products"
        }
      ],
      "steps": [
        {
          "runShell": "where node"
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-if-cart",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/carts",
            "method": "get"
          }
        }
      ]
    },
    {
      "testId": "data-route-test-onskip-if-products",
      "steps": [
        {
          "httpRequest": {
            "url": "http://localhost:8092/api/products",
            "method": "get"
          }
        }
      ]
    }
  ]
}
```

#### YAML

**`standalone.spec.yaml`**

```yaml title="standalone.spec.yaml"
# yaml-language-server: $schema=https://raw.githubusercontent.com/doc-detective/doc-detective/main/src/common/dist/schemas/spec_v3.schema.json
tests:
  - testId: data-route-test-onskip-if-windows
    if: $$platform == windows
    onSkip:
      - if: $$platform != windows
        goToTest: data-route-test-onskip-if-products
    steps:
      - runShell: where node
  - testId: data-route-test-onskip-if-cart
    steps:
      - httpRequest:
          url: http://localhost:8092/api/carts
          method: get
  - testId: data-route-test-onskip-if-products
    steps:
      - httpRequest:
          url: http://localhost:8092/api/products
          method: get
```