Nils Winkler
87270c2962
Copy all of Bash-it during the helper tests
2017-06-24 17:31:31 +02:00
Nils Winkler
732b287a57
Run migrate command after a succesful update
2017-06-24 17:31:31 +02:00
Nils Winkler
f221f63d7d
Add completion for help command, and help for migrate
2017-06-24 17:31:31 +02:00
Nils Winkler
bd2e0f1366
Add note about migrate command to readme
2017-06-24 17:31:31 +02:00
Nils Winkler
11469fe235
Fix battery_percentage check in Atomic theme
...
Check for the return value "no", which is returned when no battery check funcationality is available in the OS. This is now consistent with how the Brainy theme does this.
2017-06-24 17:31:31 +02:00
Nils Winkler
e13c75c433
Add safeguard for no battery percentage available
2017-06-24 17:31:31 +02:00
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
228b86f3d1
Change order of theme loading
...
The base theme is now loaded after plugins, since it now uses the
`command_exists` function, which is defined in the `base` plugin.
2017-06-24 17:31:31 +02:00
Nils Winkler
c33861a9b0
Change dependency check for battery_char function
2017-06-24 17:31:31 +02:00
Nils Winkler
3fac1c7ea5
Fix checks for battery plugin
...
These now check for the presence of the required function instead of
checking for the battery file in the enabled directory.
2017-06-24 17:31:31 +02:00
Nils Winkler
c598487303
Added note about quoting $BASH_IT variable
2017-06-24 17:31:31 +02:00
Nils Winkler
0d9a0987d9
Fixed missing quotes around $BASH_IT variable
...
This should fix most issues where Bash-it is installed in a directory
containing spaces.
2017-06-24 17:31:30 +02:00
Nils Winkler
6f26f92c97
Fixed checks for enabled files in existing plugins
2017-06-24 17:31:30 +02:00
Nils Winkler
951fe918c0
Automatically running migration command when enabling/disabling components
2017-06-24 17:31:30 +02:00
Nils Winkler
0039534517
Renamed a couple of variables
2017-06-24 17:31:30 +02:00
Nils Winkler
15868b1b61
Moved the contribution guidelines to a more prominent position at the top of the page
...
Hoping that more people will take a look at these guidelines before contributing.
2017-06-24 17:31:30 +02:00
Nils Winkler
095ee3bb91
Added a note about unit testing
2017-06-24 17:31:30 +02:00
Nils Winkler
51c8970eb8
Fixed indentation
2017-06-24 17:31:30 +02:00
Nils Winkler
959dd09713
Added development file
2017-06-24 17:31:30 +02:00
Nils Winkler
b686c0dc7f
Added a note about theme screenshots
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
9ebbf6e6e5
Updated some load priorities
...
These will not work yet, since they are used across component types, but this will start working once everything is loaded from the same "enabled" directory.
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
99ad1bc3e6
Running tests on Linux and macOS (as OS X)
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
54774d4f59
Using the existing enable function for interactive install
2017-06-24 17:31:30 +02:00
Nils Winkler
3ecf684eb6
Switched loading of single components to existing 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
56d0f56714
Filter out items that are already enabled
2017-06-24 17:31:30 +02:00
Nils Winkler
2e0ceba776
Supporting both old and new link structure for completion
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