forked from dart-archive/angular.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-test.sh
executable file
·45 lines (35 loc) · 1.27 KB
/
run-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
set -e
export DART_SDK=`which dart | sed -e 's/\/dart\-sdk\/.*$/\/dart-sdk/'`
# OS-specific Dartium path defaults
case $( uname -s ) in
Darwin)
CHROME_CANARY_BIN=${CHROME_CANARY_BIN:-"/Applications/dart/chromium/Chromium.app/Contents/MacOS/Chromium"};;
esac
if [ ! -x "$CHROME_CANARY_BIN" ]; then
echo "Unable to determine path to Dartium browser. To correct:"
echo "export CHROME_CANARY_BIN=path/to/dartium"
exit 1;
fi
export CHROME_CANARY_BIN
export DART_FLAGS="--enable-type-checks --enable-asserts"
# Check for node
if [ -z "$(which node)" ]; then
echo "node.js does not appear to be on the path."
echo "You can obtain it from http://nodejs.org"
exit 1;
fi
# Run npm install so we are up-to-date
npm install karma karma-dart karma-chrome-launcher \
karma-script-launcher karma-junit-reporter jasmine-node;
# Print the dart VM version to the logs
dart --version
# run io tests
dart --checked test/io/all.dart
# run expression extractor tests
scripts/test-expression-extractor.sh
./scripts/analyze.sh &&
node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ &&
node "node_modules/karma/bin/karma" start karma.conf \
--reporters=junit,dots --port=8765 --runner-port=8766 \
--browsers=ChromeCanary,Chrome --single-run --no-colors