> For the complete documentation index, see [llms.txt](https://docs.stoobly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoobly.com/core-concepts/scaffold/validation.md).

# Validation

When we encounter an error after a scaffolded workflow is run, we want to diagnose the cause. Scaffold validation does the following checks on your application:

{% tabs %}
{% tab title="Record" %}

* Core services are running
* Containers for each service are running
* Resource directories are mounted within the containers
* Requests can be recorded from each service
* Stoobly UI is running and accessible on localhost port 4200
  {% endtab %}

{% tab title="Mock" %}

* Core services are running
* Containers for each service are running
* Resources are mounted within the containers
* Requests can be mocked from each service
* Stoobly UI is running and accessible on localhost port 4200
  {% endtab %}

{% tab title="Test" %}

* Core services are running
* Containers for each service are running
* Resources are mounted within the containers
* Requests can be mocked from each service
  {% endtab %}
  {% endtabs %}

## Core Services

| Service    | Record | Mock | Test |
| ---------- | ------ | ---- | ---- |
| build      | ✅      | ✅    | ✅    |
| entrypoint | ✅      | ✅    | ✅    |
| gateway    | ✅      | ✅    | ❌    |
| stoobly-ui | ✅      | ✅    | ❌    |

## Service Containers

A service is comprised of one or more containers and belongs to one or more worfklows. When a workflow is run, the following containers will be started:

<table><thead><tr><th width="251">Container</th><th>Detached</th><th>With Hostname</th><th>Without Hostname</th></tr></thead><tbody><tr><td>&#x3C;WORKFLOW>-init</td><td>✅</td><td>✅</td><td>✅</td></tr><tr><td>&#x3C;WORKFLOW>-proxy</td><td>✅</td><td>✅</td><td>❌</td></tr></tbody></table>

## Resource Directory Mounts

<table><thead><tr><th width="169">Resource Directory</th><th width="269">Destination</th><th width="98">Detached</th><th>With/Without Hostname</th></tr></thead><tbody><tr><td>.stoobly</td><td>/home/stoobly/.stoobly</td><td>❌</td><td>✅</td></tr><tr><td>.stoobly/services</td><td>/home/stoobly/.stoobly/services</td><td>✅</td><td>✅</td></tr></tbody></table>

## Get Started

{% content-ref url="/pages/LmG9o2oN0VNqsBmYIhqz" %}
[Validating](/guides/how-to-integrate-e2e-testing/how-to-run-a-workflow/troubleshooting/validating.md)
{% endcontent-ref %}
