# Run

`import { Run } from "destack:test";`

One execution of a test case or suite.

```ds title="Run"
export struct Run {
    id: RunId;
    target: { caseId: CaseId } | { suiteId: SuiteId };
    outcome: Outcome;
    issues: [Issue];
    artifacts: [Artifact];
    replay: Replay;
    startedAt: Instant;
    endedAt: Instant;
}
```

[language/library/src/test/run.ds:30:54](https://github.com/destack-sh/destack/blob/main/language/library/src/test/run.ds#L30-L54)

## Members

### `id: RunId`

Stable run identifier.

### `target: { caseId: CaseId } | { suiteId: SuiteId }`

Executed target.

### `outcome: Outcome`

Run outcome.

### `issues: [Issue]`

Issues found during the run.

### `artifacts: [Artifact]`

Artifacts produced by the run.

### `replay: Replay`

Replay input when available.

### `startedAt: Instant`

Start time when recorded.

### `endedAt: Instant`

End time when recorded.
