jld3103
2 years ago
4 changed files with 16 additions and 19 deletions
@ -0,0 +1,14 @@
|
||||
#!/bin/bash |
||||
set -euxo pipefail |
||||
cd "$(dirname "$0")/.." |
||||
|
||||
rm -rf /tmp/nextcloud-neon |
||||
mkdir -p /tmp/nextcloud-neon |
||||
|
||||
( |
||||
cd packages/nextcloud |
||||
rm coverage -rf |
||||
fvm dart run coverage:test_with_coverage --function-coverage --branch-coverage -- --timeout 60s "$@" |
||||
lcov --remove coverage/lcov.info "$(pwd)/lib/src/nextcloud.openapi.g.dart" -o coverage/filtered.info |
||||
genhtml coverage/filtered.info -o coverage/html |
||||
) |
@ -1,17 +0,0 @@
|
||||
#!/bin/bash |
||||
set -euxo pipefail |
||||
cd "$(dirname "$0")/.." |
||||
|
||||
rm -rf /tmp/nextcloud-neon |
||||
mkdir -p /tmp/nextcloud-neon |
||||
|
||||
( |
||||
cd packages/nextcloud |
||||
fvm dart test "$@" |
||||
|
||||
# The coverage used to work, but due to some change it's broken right now |
||||
#rm coverage -rf |
||||
#fvm dart run coverage:test_with_coverage --function-coverage --branch-coverage "$@" |
||||
#lcov --remove coverage/lcov.info "$(pwd)/lib/src/clients/**/model/*" "$(pwd)/lib/src/clients/**/auth/*" "$(pwd)/lib/src/clients/common/*" "$(pwd)/lib/src/clients/**/api_client.dart" -o coverage/filtered.info |
||||
#genhtml coverage/filtered.info -o coverage/html |
||||
) |
Loading…
Reference in new issue