# Testing with simulators

A simulator is a container that acts like one product, such as Slack or Salesforce, and holds a company. You run it next to your tests instead of calling the real product. This article explains why that makes your tests more reliable. To start one, see [Run a simulator](https://console.era.eon.io/docs/run-a-simulator.md).

An agent that reads a customer's Salesforce, files a Linear issue and answers from Slack has nothing to assert against in CI. A real vendor sandbox needs credentials no CI job should hold, answers differently every week, rate-limits a test matrix, and can't be told "pretend it's day 2 and the renewal already closed". A simulator can.

## Why test against a simulator

- **The same data every run.** The data depends only on `SIMCORE_SEED`, `SIMCORE_TODAY` and `SIMCORE_STATE`, so an assertion on a count stays true.
- **Isolation.** One container serves many tenants. Give each test, or each parallel worker, its own tenant and reset it between tests.
- **One company across products.** The account in Salesforce is the same account the Zendesk ticket and the Gong call refer to, so you can test an agent that works across systems from end to end.
- **Failure on demand.** One POST makes a simulator throttle, slow down, answer with 500s or run out of quota, so you can test your retry and backoff code instead of hoping it works.
- **No writes unless you ask.** A simulator refuses a client's writes by default, which is what makes it safe to run an agent you're testing.

> Before an assertion in your suite depends on a simulator, read [How simulators differ from the real products](https://console.era.eon.io/docs/how-simulators-differ-from-the-real-products.md). Each simulator is shaped like the real product, but it isn't the product.
