Skip to content

Commit 990caab

Browse files
authored
Merge pull request #87 from fredeil/repo-assist/improve-run-tests-script-2a4a2fd17f1abc7c
[Repo Assist] chore: modernise tool/run_tests.sh to use dart CLI
2 parents b8a4a57 + 30154f0 commit 990caab

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

tool/run_tests.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

33
set -e
44

5-
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" )/.. && pwd )
5+
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )
66

7-
echo "Analyzing library for warnings or type errors"
8-
pub run test $DIR/test/email_validator_test.dart
7+
cd "$DIR"
98

10-
echo -e "\n✓ OK"
9+
echo "Installing dependencies..."
10+
dart pub get
11+
12+
echo "Checking formatting..."
13+
dart format --output=none --set-exit-if-changed .
14+
15+
echo "Analyzing for warnings and type errors..."
16+
dart analyze --fatal-infos
17+
18+
echo "Running tests..."
19+
dart test
20+
21+
echo -e "\n\033[32m✓ OK\033[0m"

0 commit comments

Comments
 (0)