blob: 3273385200f74ebb888199256e3a128b442b6d26 [file] [log] [blame]
#!/bin/bash
# bail on error
set -e
# TODO(sigmund): replace with a real test runner
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
# Note: dart_analyzer needs to be run from the root directory for proper path
# canonicalization.
pushd $DIR/..
#echo Analyzing library for warnings or type errors
dartanalyzer --fatal-warnings lib/*.dart \
|| echo -e "Ignoring analyzer errors"
#pd
dart --enable-type-checks --enable-asserts test/all_test.dart $@