Skip to content

Commit

Permalink
better runner
Browse files Browse the repository at this point in the history
  • Loading branch information
lvivski committed Jan 23, 2013
1 parent e91ec56 commit 7d669d6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tool/run_tests.sh
@@ -1,5 +1,17 @@
#!/bin/bash

ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../test" && pwd )"
set -e

dart --enable-checked-mode $ROOT_DIR/hart_test.dart
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" )/.. && pwd )

echo "Analyzing library for warnings or type errors"
dart_analyzer --fatal-warnings --fatal-type-errors lib/*.dart
rm -r out

for test in $DIR/test/*_test.dart
do
echo -e "\nRunning test suite: $(basename $test)"
dart --checked $test
done

echo -e "\n✓ OK"

0 comments on commit 7d669d6

Please sign in to comment.