antidote/tests
mattmc3 41204705ac
Bump version to 1.9.11
2025-12-12 19:23:54 -05:00
..
fakegitsite.com/fakeuser/fakerepo Move test data around 2025-04-12 14:46:07 -04:00
functions Fix unit tests - new mock for git fetch 2025-04-13 13:10:29 -04:00
testdata Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
tmp_home Update tests to support 5.4.2 2025-04-12 14:22:39 -04:00
README.md Bump version to 1.9.11 2025-12-12 19:23:54 -05:00
__init__.zsh Change test setup procedure 2025-04-12 14:45:29 -04:00
test_alt_zsh_defer_bundle.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_antidote.md Bump version to 1.9.11 2025-12-12 19:23:54 -05:00
test_antidote_core.md Bump version to 1.9.11 2025-12-12 19:23:54 -05:00
test_bundle_helpers.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_cmd_bundle.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_cmd_help.md Fix tests for help output 2025-12-12 19:19:48 -05:00
test_cmd_home.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_init.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_install.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_list.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_load.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_main.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_path.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_purge.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_cmd_script.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_cmd_update.md Bump version to 1.9.11 2025-12-12 19:23:54 -05:00
test_fpath_rules.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_helpers.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_mockgit.md Enhance mockgit 2025-04-12 14:45:00 -04:00
test_parser.md Add new Zsh parser to replace Awk parser 2025-04-12 17:39:57 -04:00
test_paths_with_spaces.md Add tests 2025-05-10 11:58:21 -04:00
test_real.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_setopts_special.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_zcompile_bundle.md Fixes tests for antidote-script changes 2025-05-06 21:46:29 +09:00
test_zcompile_static.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00
test_zsetopts.md Update tests to use the new testing setup 2025-04-12 14:46:25 -04:00

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
%