---
schema_version: "1"
id: a94e560dc5837225b612a772316f330c7ca28ffe22d75623cd13e4a75e78ec57
title: Run a Test Suite
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/api-functional-monitoring/bat-execute-task.md
canonical_url: https://docs.mulesoft.com/api-functional-monitoring/bat-execute-task
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c975ae3968295d915d0c38b409fcec9ed0bebf16b7b312f9b345f7c6d9131538
description: MuleSoft Documentation Site
latest: true
---
---
product: API Functional Monitoring
---

# Run a Test Suite

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Using the BAT CLI, you can execute one test at a time or all tests listed in the `bat.yaml` file for
a test suite.

## To Run Tests

- To run all of the tests that are listed in the `bat.yaml` file for a test suite, run the `bat`
  command at the root level in your test-suite directory. Your `bat.yaml` file for the test suite
  must also be at the root level in this directory.

- To run a single test that is listed in the `bat.yaml` file for a test suite, run the command
  `bat ./folder/file.dwl` at the root level in your test-suite directory:

  `folder`

  Specify the path to the test file.

  `file.dwl`

  Specify the name of the test file.

  Your `bat.yaml` file for the test suite must also be at the root level in the test-suite
  directory.

## What to Do Next

By default in the example test suite that you can generate with the `bat init` command, BAT
generates an HTML report about the test results. The configuration of this report is in the
`reporters` section on the `bat.yaml` file.

\+ .The default configuration of the HTML report

```yaml
reporters:
  - type: HTML
    outFile: /tmp/HTML.html
```

However, you can receive reports of test failures from several supported applications, not just in
an HTMl file. See [Configuring and Viewing Reports](https://docs.mulesoft.com/api-functional-monitoring/bat-reporting-task).
