mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 19:50:22 +03:00
Move tests into tide_theme folder, make tide_test a tide subcommand
This commit is contained in:
parent
c0bfa1858b
commit
833d34917e
2
.github/workflows/CI.yaml
vendored
2
.github/workflows/CI.yaml
vendored
@ -19,4 +19,4 @@ jobs:
|
||||
|
||||
- name: Run all tests
|
||||
shell: fish {0}
|
||||
run: tide_test -a
|
||||
run: tide test -a
|
||||
|
@ -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
|
||||
|
@ -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'
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user