bash-it/test
Konstantin Gredeskoul baae0305b6 Speed up bash-it Search & support exact matches
This commit improves Bash-It search functionality in a couple of ways:

 * bash-it search (with no arguments) will print detailed help.
 * bash-it search now accepts terms prefixed with '@' sign, indicating an exact match.
 * bash-it search now performs smarter caching of the component listings/status

New search syntax is as follows:

   bash-it search [-|@]term1 [-|@]term2 [ --enable | --disable | --help ]
2018-11-19 11:55:36 -08:00
..
bash_it Added assert_link_exist function and use that 2017-10-14 18:02:04 +02:00
completion Replaced reload section with proper function. 2018-04-18 21:51:20 +02:00
fixtures/bash_it Test cases for loading from global directory 2017-09-17 21:05:59 +02:00
install Added assert_link_exist function and use that 2017-10-14 18:02:04 +02:00
lib Speed up bash-it Search & support exact matches 2018-11-19 11:55:36 -08:00
plugins Added test for the "no" energy tool case 2017-11-02 06:46:01 +01:00
themes SCM_CURRENT_USER supports accented characters 2017-12-18 09:05:33 -08: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 Replaced reload section with proper function. 2018-04-18 21:51:20 +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.