Skip to content

Commit ec35cb9

Browse files
Fixed some issues regarding tool scripts
1 parent fd9d9f8 commit ec35cb9

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

assets/example.gif

-688 KB
Binary file not shown.

tool/gen_coverage_report.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22

3-
dart run ./tool/travis/test_coverage_helper.dart || exit -1;
3+
CURRENT=`pwd`
4+
DIR_NAME=`basename "$CURRENT"`
5+
if [ $DIR_NAME == 'tool' ]
6+
then
7+
cd ..
8+
fi
9+
10+
dart run tool/test_coverage_helper.dart || exit -1;
411
flutter test --coverage || exit -1;
512
genhtml coverage/lcov.info -o coverage/html || exit -1;
613
open coverage/html/index.html || exit -1;

tool/testLocal.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22

3-
dart run ./tool/travis/test_coverage_helper.dart || exit -1;
3+
CURRENT=`pwd`
4+
DIR_NAME=`basename "$CURRENT"`
5+
if [ $DIR_NAME == 'tool' ]
6+
then
7+
cd ..
8+
fi
9+
10+
dart run ./tool/test_coverage_helper.dart || exit -1;
411
flutter test --coverage || exit -1;
512
genhtml coverage/lcov.info -o coverage/html
613
rm test/coverage_helper_test.dart

0 commit comments

Comments
 (0)