-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Expand file tree
/
Copy pathcucumber_test_matrix.sh
More file actions
executable file
·31 lines (27 loc) · 898 Bytes
/
cucumber_test_matrix.sh
File metadata and controls
executable file
·31 lines (27 loc) · 898 Bytes
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
#!/usr/bin/env bash
set -o errexit
set -o pipefail
loadmethods=(mmap directly datastore)
algorithms=(ch mld)
base=home
if [ -n "$GITHUB_STEP_SUMMARY" ]; then
base=github
echo "### Cucumber Test Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "|Algorithm|Load Method|Passed|Skipped|Failed|Elapsed (s)|" >> $GITHUB_STEP_SUMMARY
echo "|:------- |:--------- | ----:| -----:| ----:| ---------:|" >> $GITHUB_STEP_SUMMARY
fi
for algorithm in "${algorithms[@]}"
do
export algorithm
for loadmethod in "${loadmethods[@]}"
do
export loadmethod
if [ -n "$GITHUB_STEP_SUMMARY" ]; then
echo -n "| $algorithm | $loadmethod " >> $GITHUB_STEP_SUMMARY
fi
set -x
npx cucumber-js -p $base -p $algorithm -p $loadmethod $@
{ set +x; } 2>/dev/null
done
done