Introduction

bats-core is a well–known and widely used software to define and run automated tests for shell and Bash scripts. You can learn more about it at https://github.com/bats-core/bats-core.

bats-core files have the file extension .bats. They are highlighted like .bash files.

Supported System Configurations

All versions of GNU Bash, version 3 and later, are supported.

macOS, Linux, and Windows are supported. On Windows bats-core tests can be run with Bash installed WSL, Git Bash, or Cygwin.

Limitations

Here are some extensions you could use in your bats-core tests: