chore: throw more threads at dart test
This commit is contained in:
parent
5d892a8007
commit
c052dc5025
|
|
@ -1,15 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
thread_count=$(getconf _NPROCESSORS_ONLN)
|
||||||
|
|
||||||
if which flutter >/dev/null; then
|
if which flutter >/dev/null; then
|
||||||
flutter pub global activate junitreport
|
flutter pub global activate junitreport
|
||||||
flutter test --coverage
|
flutter test --concurrency=$thread_count --coverage
|
||||||
TEST_CODE=$?
|
TEST_CODE=$?
|
||||||
|
|
||||||
# coverage
|
# coverage
|
||||||
flutter pub global activate remove_from_coverage
|
flutter pub global activate remove_from_coverage
|
||||||
flutter pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$'
|
flutter pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$'
|
||||||
else
|
else
|
||||||
dart test --coverage=coverage
|
dart test --concurrency=$thread_count --coverage=coverage
|
||||||
dart test --file-reporter='json:TEST-report.json'
|
|
||||||
TEST_CODE=$?
|
TEST_CODE=$?
|
||||||
|
|
||||||
# coverage -> broken see https://github.com/dart-lang/test/issues/1698
|
# coverage -> broken see https://github.com/dart-lang/test/issues/1698
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue