Run a Test Suite
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 all of the tests that are listed in the
bat.yamlfile for a test suite, run the
batcommand at the root level in your test-suite directory. Your
bat.yamlfile 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.yamlfile for a test suite, run the command
bat ./folder/file.dwlat the root level in your test-suite directory:
Specify the path to the test file.
Specify the name of the test file.
bat.yamlfile for the test suite must also be at the root level in the test-suite directory.
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
+ .The default configuration of the HTML report
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 Configure Reports of Test Failures.