-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecept.cmd
68 lines (68 loc) · 3.41 KB
/
codecept.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@ECHO OFF
IF "%1" == "--all" (
%0 run %2
) ELSE IF "%1" == "--acceptance" (
%0 run acceptance %2
) ELSE IF "%1" == "--functional" (
%0 run functional %2
) ELSE IF "%1" == "--unit" (
%0 run unit %2
) ELSE IF "%1" == "--all-group" (
%0 run --group %2
) ELSE IF "%1" == "--acceptance-group" (
%0 run --group %2 acceptance
) ELSE IF "%1" == "--functional-group" (
%0 run --group %2 functional
) ELSE IF "%1" == "--unit-group" (
%0 run --group %2 unit
) ELSE IF "%1" == "--all-html" (
%0 run --html report.html --coverage-html coverage %2
) ELSE IF "%1" == "--acceptance-html" (
%0 run --html report.html --coverage-html coverage acceptance %2
) ELSE IF "%1" == "--functional-html" (
%0 run --html report.html --coverage-html coverage functional %2
) ELSE IF "%1" == "--unit-html" (
%0 run --html report.html --coverage-html coverage unit %2
) ELSE IF "%1" == "--all-group-html" (
%0 run --group %2 --html report.html --coverage-html coverage
) ELSE IF "%1" == "--acceptance-group-html" (
%0 run --group %2 --html report.html --coverage-html coverage acceptance
) ELSE IF "%1" == "--functional-group-html" (
%0 run --group %2 --html report.html --coverage-html coverage functional
) ELSE IF "%1" == "--unit-group-html" (
%0 run --group %2 --html report.html --coverage-html coverage unit
) ELSE IF "%1" == "--all-xml" (
%0 run --xml report.xml --coverage-xml coverage.xml %2
) ELSE IF "%1" == "--acceptance-xml" (
%0 run --xml report.xml --coverage-xml coverage.xml acceptance %2
) ELSE IF "%1" == "--functional-xml" (
%0 run --xml report.xml --coverage-xml coverage.xml functional %2
) ELSE IF "%1" == "--unit-xml" (
%0 run --xml report.xml --coverage-xml coverage.xml unit %2
) ELSE IF "%1" == "--all-group-xml" (
%0 run --group %2 --xml report.xml --coverage-xml coverage.xml
) ELSE IF "%1" == "--acceptance-group-xml" (
%0 run --group %2 --xml report.xml --coverage-xml coverage.xml acceptance
) ELSE IF "%1" == "--functional-group-xml" (
%0 run --group %2 --xml report.xml --coverage-xml coverage.xml functional
) ELSE IF "%1" == "--unit-group-xml" (
%0 run --group %2 --xml report.xml --coverage-xml coverage.xml unit
) ELSE IF "%1" == "--all-xhtml" (
%0 run --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml %2
) ELSE IF "%1" == "--acceptance-xhtml" (
%0 run --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml acceptance %2
) ELSE IF "%1" == "--functional-xhtml" (
%0 run --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml functional %2
) ELSE IF "%1" == "--unit-xhtml" (
%0 run --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml unit %2
) ELSE IF "%1" == "--all-group-xhtml" (
%0 run --group %2 --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml
) ELSE IF "%1" == "--acceptance-group-xhtml" (
%0 run --group %2 --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml acceptance
) ELSE IF "%1" == "--functional-group-xhtml" (
%0 run --group %2 --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml functional
) ELSE IF "%1" == "--unit-group-xhtml" (
%0 run --group %2 --html report.html --coverage-html coverage --xml report.xml --coverage-xml coverage.xml unit
) ELSE (
php "%~dp0codecept.phar" %*
)