Move tests into tide_theme folder, make tide_test a tide subcommand

This commit is contained in:
Ilan Cosman 2020-07-11 20:59:30 -07:00
parent c0bfa1858b
commit 833d34917e
10 changed files with 3 additions and 6 deletions

View File

@ -19,4 +19,4 @@ jobs:
- name: Run all tests
shell: fish {0}
run: tide_test -a
run: tide test -a

View File

@ -1,5 +1,5 @@
function tide
argparse 'v/version' -- $argv
argparse --stop-nonopt 'v/version' -- $argv
set -l subcommand $argv[1]
if set -q _flag_version

View File

@ -8,7 +8,7 @@ function tide_test
set -lx TERM xterm # Necessary for testing purposes ensures color codes are printed
set -l testsDir "$__fish_config_dir/tests"
set -l testsDir "$_tide_dir/tests"
set -l pending '/tmp/tide_test'
set -l failed '/tmp/tide_test_failed'

View File

@ -29,9 +29,6 @@ function tide_actual_install
cp -r "$tempDir/tide_theme" $__fish_config_dir
if set -q _flag_dev
cp -r "$tempDir/tests" $__fish_config_dir
cp -r "$tempDir/dev/." "$__fish_config_dir/functions"
# Install fisher and fishtape for testing
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fisher add jorgebucaran/fishtape