# Running SDK Tests
Source: https://speakeasy.com/docs/sdks/sdk-contract-testing/running-tests

import { Screenshot } from "@/mdx/components";



Run testing, via any of these options, depends on the desired use case:

- Directly via the [`speakeasy test`](/docs/speakeasy-reference/cli/test) CLI command.
- In [GitHub Actions workflows](/docs/sdk-testing/github-actions).
- In the [`speakeasy run`](/docs/speakeasy-reference/cli/run) CLI command and existing GitHub Actions generation workflow with additional Speakeasy workflow configuration.

## Via CLI

If you have multiple SDK targets the following will prompt you on which targets you would like to run tests for.

```bash
speakeasy test
```

This will run tests for all SDKs in the repo.

```bash
speakeasy test -t all
```

<Screenshot
  variant="cli"
  image={{
    src: "/assets/docs/cli-run-tests.png",
    alt: "A screenshot of successful tests in the CLI.",
  }}
/>

## During Run

For `speakeasy run` support, modify the Speakeasy workflow configuration (`.speakeasy/workflow.yaml`).

Enable running tests during Speakeasy workflows by adding to one or more of the targets in the `targets` section of the configuration.

```yaml
targets:
  example-target:
    # ... other existing configuration ...
    testing:
      enabled: true
```

## Viewing Test Reports

View test reports by navigating to the Tests tab under a particular SDK in the [speakeasy dashboard](https://app.speakeasy.com/).

<Screenshot
  variant="web"
  url="app.speakeasy.com"
  image={{
    src: "/assets/docs/test-report.png",
    alt: "Speakeasy dashboard test report.",
  }}
/>

## Next Steps

- [Customize SDK tests](/docs/sdk-testing/customizing-sdk-tests)
- [Setup testing in GitHub Actions](/docs/sdk-testing/github-actions)