Running bats-core Tests
There are several ways to run bats-core tests:
How to Run All Tests in a Directory
Choose
Run ‘All tests’
in the context menu on the directory. This creates a new bats-core run
configuration to execute all tests in all .bats
files in this directory and all sub directories.
![](/pngs/bats-core/run_all_tests_400.8eb5c7142ad8a074e7521c722236c52a.png)
How to Run All Tests in a File
Click on the first green arrow gutter icon in the file and choose
All tests
in the context menu. This
creates and runs a new bats-core run configuration for the current file.
![](/pngs/bats-core/gutter_all_tests_400.ce9aaf2b45ece36e0c1696d3c4b65365.png)
How to Run a Single Test
Click on the green arrow gutter icon in the file and choose
Run ‘your test name’
in the context menu. This
creates and runs a new bats-core run configuration for only this function.
![](/pngs/bats-core/gutter_single_test_400.8a8cb2135ef8f0e8543f680f29699df4.png)