mirror of https://github.com/mattmc3/antidote
|
|
||
|---|---|---|
| .. | ||
| fakegitsite.com/fakeuser/fakerepo | ||
| functions | ||
| testdata | ||
| tmp_home | ||
| README.md | ||
| __init__.zsh | ||
| test_alt_zsh_defer_bundle.md | ||
| test_antidote.md | ||
| test_antidote_core.md | ||
| test_bundle_helpers.md | ||
| test_cmd_bundle.md | ||
| test_cmd_help.md | ||
| test_cmd_home.md | ||
| test_cmd_init.md | ||
| test_cmd_install.md | ||
| test_cmd_list.md | ||
| test_cmd_load.md | ||
| test_cmd_main.md | ||
| test_cmd_path.md | ||
| test_cmd_purge.md | ||
| test_cmd_script.md | ||
| test_cmd_update.md | ||
| test_fpath_rules.md | ||
| test_helpers.md | ||
| test_mockgit.md | ||
| test_parser.md | ||
| test_paths_with_spaces.md | ||
| test_real.md | ||
| test_setopts_special.md | ||
| test_zcompile_bundle.md | ||
| test_zcompile_static.md | ||
| test_zsetopts.md | ||
README.md
antidote tests
Tests are using clitest. clitest utilizes markdown files in this folder to house the tests in a literate format.
Setup
A simple setup consists of:
- Remove existing antidote zstyles
- Don't really git things
- Setup antidote
source <(zstyle -L ':antidote:*' | awk '{print "zstyle -d",$2}')
function git { echo "$@" }
ANTIDOTE_HOME=$PWD/tests/zdotdir/antidote_home
source ./antidote.zsh
But you probably just want to source setup...
% source ./tests/__init__.zsh
% t_setup
%
General
antidote with no args displays its help:
% antidote
antidote - the cure to slow zsh plugin management
usage: antidote [<flags>] <command> [<args> ...]
flags:
-h, --help Show context-sensitive help
-v, --version Show application version
commands:
help Show documentation
load Statically source all bundles from the plugins file
bundle Clone bundle(s) and generate the static load script
install Clone a new bundle and add it to your plugins file
update Update antidote and its cloned bundles
purge Remove a cloned bundle
home Print where antidote is cloning bundles
list List cloned bundles
path Print the path of a cloned bundle
init Initialize the shell for dynamic bundles
%
Version
The -v/--version flag displays the current version:
% antidote --version
antidote version 1.9.11 (abcd123)
%
Teardown
% t_teardown
%