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.
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.
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.