Commit Graph

14 Commits

Author SHA1 Message Date
John D Pell
9dcbeec7ad tests: test_helper already loads composure.sh
...and `cite()`s metadata
2022-01-08 08:29:13 -08:00
buhl
49d7d2e8c4 Getting Bash-it to use the vendored composure
Fixed tests
Fixed install.sh and bash_it.sh
Added gitattributes to the vendor folder
Changed documentation
2021-02-02 16:34:04 +01:00
Alex Thiessen
9f3889c284 test: Make rsync optional
For bulk copying, `rsync` is used in test code, which is rather fast and
capable of saving needless write operations. The downside is that tests
fail when the tool is missing, which is the case with most minimal Linux
setups (e.g. containers or even Gnome installations of Debian).

Provide an alternative way for sufficiently fast copying by means of
`find -exec cp`. Measured total test time penalty is less than 0.5%.
Downside of needless write operations remains in case of fallback.
2020-05-11 02:30:10 +02:00
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
Nils Winkler
34993f5da3 Excluding enabled directory when setting up test fixtures 2020-04-21 08:25:40 +02:00
Nils Winkler
3093273425 Updated rsync command to work with latest version of bats-core 2020-04-21 08:25:39 +02:00
Nils Winkler
80e510d65b Added assert_link_exist function and use that 2017-10-14 18:02:04 +02:00
Nils Winkler
e574de8f47 Moved testing for files to bats-file library functions 2017-10-14 18:02:04 +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
0fe2710c61 More unit tests for loading from global directory structure 2017-09-17 21:05:59 +02:00
Nils Winkler
fd637a3dc6 Loading components from global enabled directory 2017-09-17 21:05:59 +02:00
Nils Winkler
5210707da8 Test cases for loading from global directory 2017-09-17 21:05:59 +02:00
Nils Winkler
6981fa091d Add tests for bash_it.sh script 2017-09-17 21:05:58 +02:00