Call it like this: test/run test/plugins/battery.plugin.bats If called without any parameters, all of the tests are run.
Testing with Bats
To execute the unit tests, please run the run script:
# If you are in the `test` directory:
./run
# If you are in the root `.bash_it` directory:
test/run
The run script will automatically install Bats if it is not already present, and will then run all tests found under the test directory, including subdirectories.