forked from hiero-ledger/solo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.tests.yml
More file actions
227 lines (196 loc) · 8.83 KB
/
Copy pathTaskfile.tests.yml
File metadata and controls
227 lines (196 loc) · 8.83 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
version: 3
vars:
cross_env: npx cross-env
mocha_bin: npx mocha
c8_bin: npx c8
test_prefix: "{{ .cross_env }} MOCHA_SUITE_NAME"
reporter_prefix: "{{ .c8_bin }} --report-dir"
reporter_options_prefix: --reporter-options configFile=mocha-multi-reporter.json,cmrOutput=mocha-junit-reporter+mochaFile+junit
tasks:
test-setup:
cmds:
- SOLO_CLUSTER_DUALITY=1 sh {{.TASKFILE_DIR}}/test/e2e/dual-cluster/setup-dual-e2e.sh
dual-cluster-setup:
cmds:
- sh {{.TASKFILE_DIR}}/test/e2e/dual-cluster/setup-dual-e2e.sh
test:
cmds:
- "{{ .test_prefix }}=\"Unit Tests\"
{{ .reporter_prefix }}='coverage/unit'
{{ .mocha_bin }} 'test/unit/**/*.ts'
--exclude 'test/unit/core/helm/**/*.ts'
{{ .reporter_options_prefix }}.xml"
test-mathex:
cmds:
- "{{ .test_prefix }}=\"MathEx Unit Tests\"
{{ .reporter_prefix }}='coverage/unit-mathex'
{{ .mocha_bin }} 'test/unit/**/math-ex*.ts'
{{ .reporter_options_prefix }}.xml"
test-data:
cmds:
- "{{ .test_prefix }}=\"Data Layer Unit Tests\"
{{ .reporter_prefix }}='coverage/unit-data'
{{ .mocha_bin }} 'test/unit/data/**'
{{ .reporter_options_prefix }}.xml"
test-e2e-all:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E All Tests\"
{{ .reporter_prefix }}='coverage/e2e-all'
{{ .mocha_bin }} 'test/e2e/**/*.ts'
{{ .reporter_options_prefix }}-e2e-all.xml"
test-e2e-integration:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Integration Tests\"
{{ .reporter_prefix }}='coverage/e2e-integration'
{{ .mocha_bin }} 'test/e2e/integration/**/*.ts'
{{ .reporter_options_prefix }}-e2e-integration.xml"
test-e2e-leases:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Lease Tests\"
{{ .reporter_prefix }}='coverage/e2e-leases'
{{ .mocha_bin }} 'test/e2e/integration/core/lease*.test.ts'
{{ .reporter_options_prefix }}-e2e-integration.xml"
test-helm:
cmds:
- "{{ .test_prefix }}=\"Unit Helm Tests\"
{{ .reporter_prefix }}='coverage/unit-helm'
{{ .mocha_bin }} 'test/unit/core/helm/**/*.ts'
{{ .reporter_options_prefix }}.xml"
test-e2e-standard:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Standard Tests\"
{{ .reporter_prefix }}='coverage/e2e-standard'
{{ .mocha_bin }} 'test/e2e/**/*.ts'
--ignore 'test/unit/**/*.ts'
--ignore 'test/e2e/integration/**/*.ts'
--ignore 'test/e2e/commands/node*.ts'
--ignore 'test/e2e/commands/separate-node*.ts'
--ignore 'test/e2e/commands/relay*.ts'
--ignore 'test/e2e/commands/block-node.test.ts'
--ignore 'test/e2e/commands/dual-*.ts'
--ignore 'test/e2e/commands/external-*.ts'
--ignore 'test/e2e/commands/quick-start-single.test.ts'
--ignore 'test/e2e/commands/separate-node-add.test.ts'
--ignore 'test/e2e/commands/separate-node-delete.test.ts'
--ignore 'test/e2e/commands/separate-node-update.test.ts'
--ignore 'test/e2e/commands/separate-node-upgrade.test.ts'
{{ .reporter_options_prefix }}-e2e-standard.xml --timeout 30000"
test-e2e-node-pem-stop:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node PEM Stop Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-pem-stop'
{{ .mocha_bin }} 'test/e2e/commands/node-pem-stop.test.ts'
{{ .reporter_options_prefix }}-e2e-node-pem-stop.xml"
test-e2e-node-pem-kill:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node PEM Kill Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-pem-kill'
{{ .mocha_bin }} 'test/e2e/commands/node-pem-kill.test.ts'
{{ .reporter_options_prefix }}-e2e-node-pem-kill.xml"
test-e2e-node-local-hedera:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Local Hedera Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-local-hedera'
{{ .mocha_bin }} 'test/e2e/commands/node-local-hedera.test.ts'
{{ .reporter_options_prefix }}-e2e-node-local-hedera.xml"
test-e2e-node-local-ptt:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Local PTT Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-local-ptt'
{{ .mocha_bin }} 'test/e2e/commands/node-local-ptt.test.ts'
{{ .reporter_options_prefix }}-e2e-node-local-ptt.xml"
test-e2e-node-add:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Add Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-add'
{{ .mocha_bin }} 'test/e2e/commands/node-add.test.ts'
{{ .reporter_options_prefix }}-e2e-node-add.xml"
test-e2e-node-add-local:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Add Local Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-add-local'
{{ .mocha_bin }} 'test/e2e/commands/node-add-local.test.ts'
{{ .reporter_options_prefix }}-e2e-node-add-local.xml"
test-e2e-node-add-separate:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Add - Separate commands Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-add-separate'
{{ .mocha_bin }} 'test/e2e/commands/separate-node-add.test.ts'
{{ .reporter_options_prefix }}-e2e-node-add-separate.xml"
test-e2e-node-update:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Update Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-update'
{{ .mocha_bin }} 'test/e2e/commands/node-update.test.ts'
{{ .reporter_options_prefix }}-e2e-node-update.xml"
test-e2e-node-update-separate:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Update - Separate commands Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-update-separate'
{{ .mocha_bin }} 'test/e2e/commands/separate-node-update.test.ts'
{{ .reporter_options_prefix }}-e2e-node-update-separate.xml"
test-e2e-node-delete:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Delete Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-delete'
{{ .mocha_bin }} 'test/e2e/commands/node-delete.test.ts'
{{ .reporter_options_prefix }}-e2e-node-delete.xml"
test-e2e-node-delete-separate:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Delete - Separate commands Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-delete-separate'
{{ .mocha_bin }} 'test/e2e/commands/separate-node-delete.test.ts'
{{ .reporter_options_prefix }}-e2e-node-delete-separate.xml"
test-e2e-node-upgrade:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Upgrade Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-upgrade'
{{ .mocha_bin }} 'test/e2e/commands/node-upgrade.test.ts'
{{ .reporter_options_prefix }}-e2e-node-upgrade.xml"
test-e2e-node-upgrade-separate:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Node Upgrade - Separate commands Tests\"
{{ .reporter_prefix }}='coverage/e2e-node-upgrade-separate'
{{ .mocha_bin }} 'test/e2e/commands/separate-node-upgrade.test.ts'
{{ .reporter_options_prefix }}-e2e-node-upgrade-separate.xml"
test-e2e-relay:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Relay Tests\"
{{ .reporter_prefix }}='coverage/e2e-relay'
{{ .mocha_bin }} 'test/e2e/commands/relay.test.ts'
{{ .reporter_options_prefix }}-e2e-relay.xml"
test-e2e-block-node:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Block Nodes Tests\"
{{ .reporter_prefix }}='coverage/e2e-block-node'
{{ .mocha_bin }} 'test/e2e/commands/block-node.test.ts'
{{ .reporter_options_prefix }}-e2e-block-node.xml"
test-e2e-dual-cluster-full:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Dual Cluster Full Test\"
{{ .reporter_prefix }}='coverage/e2e-dual-cluster-full'
{{ .mocha_bin }} 'test/e2e/commands/dual-cluster-full.test.ts'
{{ .reporter_options_prefix }}-e2e-dual-cluster-full.xml"
test-e2e-external-database:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E External Database Test\"
{{ .reporter_prefix }}='coverage/e2e-external-database'
{{ .mocha_bin }} 'test/e2e/commands/external-database.test.ts'
{{ .reporter_options_prefix }}-e2e-external-database.xml"
test-external-database:
cmd: |
if [ -z "$CONSENSUS_NODE_VERSION" ]; then
export CONSENSUS_NODE_VERSION=$(grep 'HEDERA_PLATFORM_VERSION' version.ts | sed -E "s/.*'([^']+)';/\1/")
fi
cd examples/external-database-test
SOLO_CLUSTER_NAME=solo-task-test-external-database task install:external-database
task destroy:external-database
test-update-markdown:
cmd: |
docs/site/wrapper_for_update_md.sh
test-e2e-quick-start-single:
cmds:
- "{{ .test_prefix }}=\"Mocha E2E Quick Start Single Test\"
{{ .reporter_prefix }}='coverage/e2e-quick-start-single'
{{ .mocha_bin }} 'test/e2e/commands/quick-start-single.test.ts'
{{ .reporter_options_prefix }}-e2e-quick-start-single.xml"