mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Updated launch_script completion (not all feature supported)
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
046b1f6d34
commit
3ae99a386a
1 changed files with 22 additions and 3 deletions
|
|
@ -6,11 +6,28 @@ __test_programs()
|
||||||
_describe -t tests 'Select test program:' tests
|
_describe -t tests 'Select test program:' tests
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__test_classes()
|
||||||
|
{
|
||||||
|
testprogram="$words[2]"
|
||||||
|
#echo "EXECUTING ./launch_trial.sh --list-test-classes $testprogram"
|
||||||
|
classes=($(./launch_trial.sh --list-test-classes $testprogram))
|
||||||
|
# echo "CLASSES= $classes"
|
||||||
|
_describe -t classes 'Select class:' classes
|
||||||
|
}
|
||||||
|
|
||||||
|
__test_cases()
|
||||||
|
{
|
||||||
|
testprogram="$words[2]"
|
||||||
|
testclass="$words[3]"
|
||||||
|
cases=($(./launch_trial.sh --list-test-cases $testprogram.$testclass))
|
||||||
|
_describe -t cases 'Select test case:' cases
|
||||||
|
}
|
||||||
|
|
||||||
__test_program_and_class()
|
__test_program_and_class()
|
||||||
{
|
{
|
||||||
_arguments -C : \
|
_arguments -C : \
|
||||||
'2: :__test_programs' \
|
'2: :__test_programs' \
|
||||||
'3: :__test_programs'
|
'3: :__test_programs'
|
||||||
}
|
}
|
||||||
|
|
||||||
_launch_trial()
|
_launch_trial()
|
||||||
|
|
@ -25,8 +42,10 @@ _launch_trial()
|
||||||
'(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]' \
|
'(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]' \
|
||||||
'(- 1 *)--list-test-programs[list all test programs]' \
|
'(- 1 *)--list-test-programs[list all test programs]' \
|
||||||
'(- 1 *)--list-test-classes[list test classes for a given test program]:programs:__test_programs' \
|
'(- 1 *)--list-test-classes[list test classes for a given test program]:programs:__test_programs' \
|
||||||
'(- 1 *)--list-test-methods[list all test method of a given test class]:class:__test_program_and_class' \
|
'(- 1 *)--list-test-cases[list all test cases of a given test class]:class:__test_program_and_class' \
|
||||||
':projects:__test_programs' \
|
':project:__test_programs' \
|
||||||
|
':class:__test_classes' \
|
||||||
|
':testcase:__test_cases' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
|
|
||||||
return $ret
|
return $ret
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue