-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtest-funnel.bash
executable file
·45 lines (42 loc) · 1.2 KB
/
test-funnel.bash
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
#!/bin/bash
test
testsPath='2key-protocol/test/campaignsTests/variations/**/*.spec.ts'
while test $# -gt 0; do
case "$1" in
--cpc)
shift
testsPath='2key-protocol/test/campaignsTests/variations/cpc/*.spec.ts'
shift
;;
--mvp)
shift
testsPath='2key-protocol/test/campaignsTests/variations/mvp/*.spec.ts'
shift
;;
--donation)
shift
echo "Donation tests aren't implmented yet"
exit 1;
shift
;;
--acquisition)
shift
testsPath='2key-protocol/test/campaignsTests/variations/acquisition/**/*.spec.ts'
shift
;;
--example)
shift
testsPath='2key-protocol/test/campaignsTests/examples/*.ts'
shift
;;
*)
break
;;
esac
done
# yarn run test:command 2key-protocol/test/unitTests/envRelatedTests/congressVote.spec.ts
# yarn run test:command 2key-protocol/test/unitTests/envRelatedTests/runUserRegistration.spec.ts
# yarn run test:command 2key-protocol/test/unitTests/envRelatedTests/transferDAI.spec.ts
# yarn run test:command 2key-protocol/test/unitTests/envRelatedTests/twoKeyExchangeRate.spec.ts
# yarn run test:command 2key-protocol/test/unitTests/envRelatedTests/participationMiningRewards.spec.ts
yarn run test:command "$testsPath"