mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
* [monorepo] move retries from the outside to the per-test level * [web] increase hookTimeout in CI * [monorepo] consolidate test retries - do not retry unit tests - only retry in ci, optionally locally with "RETRIES=3 make test..." - add retries for web Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> --------- Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> GitOrigin-RevId: 86e45edcfb087d18e0e957ad6df9a6105dcd5770
13 lines
615 B
Bash
Executable File
13 lines
615 B
Bash
Executable File
#!/bin/bash
|
|
|
|
declare -a mocha_prefix=()
|
|
|
|
if [[ "$COVERAGE_ACCEPTANCE_TESTS" == "true" ]]; then
|
|
name=$(echo "$BASE_CONFIG $OVERLEAF_CONFIG" "$@" | sha256sum)
|
|
dir=data/coverage/mocha-acceptance-${name}
|
|
echo "Enabling coverage. Writing into ${dir}"
|
|
mocha_prefix+=("c8" "--reporter=clover" "--all" "--include={app.mjs,app/**/*.{mjs,js},modules/*/index.mjs,modules/*/app/**/*.{mjs,js}}" "--exclude=app/src/Features/Metadata/packageMapping.mjs" "--report-dir=${dir}")
|
|
fi
|
|
|
|
"${mocha_prefix[@]}" mocha --recursive --timeout 25000 --grep="$MOCHA_GREP" --require test/acceptance/bootstrap.js --retries="$RETRIES" "$@"
|