John D Pell
014c102b71
BATS: revamp test `setup()` and `setup_test_fixture()`
2022-03-03 22:43:17 -08:00
John D Pell
97ef5a8087
test/run: lint
2022-01-08 08:29:13 -08:00
John D Pell
4abafc55ef
tests: quote paths
2022-01-01 17:46:11 -08:00
John D Pell
8d1e802565
test: Use `${PWD}` instead of `$(pwd)`
2021-09-18 13:15:13 -07:00
Nils Winkler
543e49b759
Updated GNU parallel detection
...
Thanks to @rico-chet for the detection code!
2020-04-21 08:25:40 +02:00
Nils Winkler
eb6469096a
Added the parallel test execution code from @rico-chet
...
See here: cd4a039215/test/run (L22)
2020-04-21 08:25:40 +02:00
Nils Winkler
d39d14b140
Refactored test run script so that you can run a single file
...
Call it like this:
test/run test/plugins/battery.plugin.bats
If called without any parameters, all of the tests are run.
2017-11-02 06:46:01 +01:00
Nils Winkler
e729826ec0
Fixed some shellcheck warnings
2017-10-17 08:18:58 +02:00
Nils Winkler
3a899916bd
Removed extra line, no longer needed
2017-10-14 18:15:48 +02:00
Nils Winkler
2691a5b138
Moved to bats-assert for assert functions
2017-10-14 18:00:43 +02:00
Nils Winkler
8319545b0a
Switched to Bats-core as a submodule
...
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.
This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.
2017-10-14 18:00:43 +02:00
Nils Winkler
be9b0e71c4
Removed test filter
2017-09-17 21:05:58 +02:00
Nils Winkler
a925f5d58c
Checking for global directory when looking for components that are not enabled
2017-09-17 21:05:58 +02:00
Nils Winkler
7a3603f80d
Sorting compgen output so that the returned values are in ascending order
2017-09-17 21:05:58 +02:00
Nils Winkler
adb2f1071f
Added tests for completion results with various file locations and names
2017-09-17 21:05:58 +02:00
Nils Winkler
a4c6a1aaed
Added first tests for Bash-it completion script
2017-09-17 21:05:58 +02:00
Nils Winkler
6981fa091d
Add tests for bash_it.sh script
2017-09-17 21:05:58 +02:00
Nils Winkler
e53b5dc96e
Add some TODO items
2017-09-17 21:05:58 +02:00
Nils Winkler
b55c0251ed
Add tests for base theme's battery functions
2017-06-24 17:31:31 +02:00
Nils Winkler
6ce9403be0
Started writing tests for the install script
2017-06-24 17:31:30 +02:00
Travis Swicegood
fc70767315
Ensuring BASH_IT is set before running tests
2016-04-02 02:35:48 -07:00
Konstantin Gredeskoul
8c5ec75898
Full featured search test, dig into travis failures
2016-03-24 03:05:03 -07:00
Konstantin Gredeskoul
c0a657270c
Add bash-it search functionality
...
- "bash-it search term1 [term2]...."
- we are using existing 'bash-it show plugins|aliases|completions'
commands output, to search (with grep) for lines that match the
search terms, and then output the matches.
- wrote a simple unit test that for whatever reason fails on Travis,
so wrapped it in 'if "Darwin"'...
2016-03-23 23:13:51 -07:00
Ivan Povalyukhin
62d705ab50
added travis.ci support
2015-03-28 18:54:37 -07:00