bash-it/test
Nils Winkler 818a95d79c
Refactored test setup code
Removed the copy/paste code, moved it into a reusable function that can
be called from the `local_setup` function as needed. Also simplified the
handling of the $HOME variable since @rico-chet provided a better way of
doing this.
2020-04-21 08:25:40 +02:00
..
bash_it Refactored test setup code 2020-04-21 08:25:40 +02:00
completion Refactored test setup code 2020-04-21 08:25:40 +02:00
fixtures/bash_it Test cases for loading from global directory 2017-09-17 21:05:59 +02:00
install Refactored test setup code 2020-04-21 08:25:40 +02:00
lib Refactored test setup code 2020-04-21 08:25:40 +02:00
plugins Refactored test setup code 2020-04-21 08:25:40 +02:00
themes Merge pull request #1395 from zhao-li/toggle-able_commit_count 2019-09-02 08:45:19 +02:00
README.md Updated documentation for global directory 2017-09-17 21:05:58 +02:00
run Refactored test run script so that you can run a single file 2017-11-02 06:46:01 +01:00
test_helper.bash Refactored test setup code 2020-04-21 08:25:40 +02:00

README.md

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.