Nils Winkler
b55c0251ed
Add tests for base theme's battery functions
2017-06-24 17:31:31 +02:00
Nils Winkler
0aad8b4ab0
Fixed assert syntax
2017-06-24 17:31:31 +02:00
Nils Winkler
951fe918c0
Automatically running migration command when enabling/disabling components
2017-06-24 17:31:30 +02:00
Nils Winkler
1e624113a7
Refactored search test cases to use the assert functions
2017-06-24 17:31:30 +02:00
Nils Winkler
cb46960717
Removing enabled components before running tests
2017-06-24 17:31:30 +02:00
Nils Winkler
2607bb815a
Avoid polluting the user's Bash-it installation
...
All of the install steps are done in a test directory
2017-06-24 17:31:30 +02:00
Nils Winkler
6ff4071646
Fixed test execution that only checked for plugins starting with 2
2017-06-24 17:31:30 +02:00
Nils Winkler
dc7173b7ef
Using xargs to remove leading spaces
...
Found here: http://stackoverflow.com/a/12973694/1228454
2017-06-24 17:31:30 +02:00
Nils Winkler
bf632e19fc
Refactored tests to use helper assert functions
2017-06-24 17:31:30 +02:00
Nils Winkler
eb9a15f435
Added test cases for uninstall script
2017-06-24 17:31:30 +02:00
Nils Winkler
43b62b344a
Added test case for silent/interactive combo
2017-06-24 17:31:30 +02:00
Nils Winkler
1ace0b7a89
Checking for backup file creation
2017-06-24 17:31:30 +02:00
Nils Winkler
12ed1b79d3
Check for enabled components after install
2017-06-24 17:31:30 +02:00
Nils Winkler
b95fd6fdce
Checking config file per OS type
2017-06-24 17:31:30 +02:00
Nils Winkler
6ce9403be0
Started writing tests for the install script
2017-06-24 17:31:30 +02:00
Nils Winkler
e112eb43a0
Using local setup/teardown functions
2017-06-24 17:31:30 +02:00
Nils Winkler
9eb10c266b
Added support for local setup/teardown functions
2017-06-24 17:31:30 +02:00
Nils Winkler
402179d87d
Added prefix to bash-it test cases
2017-06-24 17:31:30 +02:00
Nils Winkler
c2446c2692
Added new "bash-it migrate" command that migrates components from the old syntax to the new one that uses the load priority
2017-06-24 17:31:30 +02:00
Nils Winkler
b1481038d8
Improved check for components that are already enabled
2017-06-24 17:31:30 +02:00
Nils Winkler
4e16dfde56
Fixed basename usage for enable all
2017-06-24 17:31:30 +02:00
Nils Winkler
d34b820cec
Added some code to figure out the directory
2017-06-24 17:31:30 +02:00
Nils Winkler
36a87a5f4e
Added some debug output
2017-06-24 17:31:30 +02:00
Nils Winkler
11330596b1
Simplified describe tests
2017-06-24 17:31:30 +02:00
Nils Winkler
65c6e6a1a6
Disable all command and test case
2017-06-24 17:31:30 +02:00
Nils Winkler
098186754c
Added test suite for enable/disable
2017-06-24 17:31:30 +02:00
Nils Winkler
58674d5a89
Updated unit tests
2016-05-23 08:45:46 +02:00
Nils Winkler
2618d2141f
Fixed unit tests
2016-05-19 09:20:39 +02:00
Konstantin Gredeskoul
db5061cf80
Better tests, more resilience and a bug fix
2016-05-12 04:04:51 -07:00
Konstantin Gredeskoul
81e3f1121b
Get the test in a known state
2016-05-07 06:42:48 -07:00
Konstantin Gredeskoul
9bb2d377a8
Enable/Disable with negated search feature
2016-05-07 06:26:30 -07:00
Konstantin Gredeskoul
fb6a6c80c0
Highlighting color of enabled components
2016-05-07 04:23:03 -07:00
Konstantin Gredeskoul
ffbeeacc54
Moving search into its own module before more work
2016-05-07 04:19:03 -07: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
a9bf098c7a
bash-it search functionality: allow test to skip on travis
2016-03-23 23:26:13 -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
1cb9093c9c
[pathmunge] fix test and modify metadata syntax in the function pathmunge to be easier supported in the test
2015-06-07 20:23:19 -07:00
Ivan Povalyukhin
34670ea021
[tests] make setup function to create test dir per test
2015-05-03 18:11:27 -07:00
Ivan Povalyukhin
f1de827622
[tests] added test for base plugin mkcd(); make mkcd() safe for directory names starting with a dash
2015-05-03 18:11:18 -07:00
Ivan Povalyukhin
067f851d79
[tests] added test for plugins base lsgrep()
2015-05-03 18:11:11 -07:00
Ivan Povalyukhin
fb2134364e
skip myip() function test - it is not determenistic, probably because of the network latency
2015-04-21 21:09:51 -07:00
Ivan Povalyukhin
f420560986
make buf() to respect file attributes on file backup
2015-04-11 15:51:26 -07:00
Ivan Povalyukhin
b3334bc9e5
adjust env vars in test_helper to make CI pass
2015-03-29 18:23:24 -07:00
Ivan Povalyukhin
cbcdd66863
test base.plugin#pickfrom
2015-03-29 17:27:48 -07:00
Ivan Povalyukhin
839cf4429a
start with tests for base.plugin
2015-03-29 16:31:05 -07:00
Ivan Povalyukhin
62d705ab50
added travis.ci support
2015-03-28 18:54:37 -07:00
Ivan Povalyukhin
3c0db284ac
added test/README with small guides about testing framework
2015-03-28 18:54:37 -07:00
Ivan Povalyukhin
28e5c99816
added test example for plugin and lib
2015-03-28 18:54:37 -07:00
Ivan Povalyukhin
a13719f28f
test lib#composure_keywords
2015-03-28 18:54:37 -07:00