dots2/.antidote/tests
2026-02-03 23:43:22 +01:00
..
functions removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
testdata removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
tmp_home removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
_setup.zsh removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
README.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_alt_zsh_defer_bundle.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_antidote.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_antidote_core.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_bundle_helpers.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_bundle.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_help.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_home.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_init.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_install.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_list.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_load.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_main.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_path.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_purge.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_script.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_cmd_update.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_fpath_rules.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_helpers.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_real.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_setopts_special.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_zcompile_bundle.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_zcompile_static.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00
test_zsetopts.md removed windows and linux split subdir 2026-02-03 23:43:22 +01:00

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/_setup.zsh
% source ./antidote.zsh
%

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.7
%

Teardown

% t_teardown
%