File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed
test/over_react/component Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ runner_image: drydock-prod.workiva.org/workiva/smithy-runner-dart:74173
66
77script :
88 - pub get
9+ - ./tool/smithy_dart2js_tests.sh
910
1011artifacts :
1112 build :
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ library dom_components_test;
1717// Tell dart2js that this library only needs to reflect the specified types.
1818// This speeds up compilation and makes JS output much smaller.
1919@MirrorsUsed (targets: const [
20- 'over_react.Dom'
20+ 'over_react.dom_components. Dom'
2121])
2222import 'dart:mirrors' ;
2323
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ main(List<String> args) async {
3030 ..pubServe = true
3131 ..platforms = [
3232 'vm' ,
33- 'content-shell'
33+ 'content-shell' ,
34+ // Can't run tests in dart2js on Travis since the suite takes too long to load and times out.
35+ // Run on Smithy instead.
36+ // See https://github.com/Workiva/over_react/issues/36
37+ // 'chrome',
3438 ]
3539 // Prevent test load timeouts on Smithy.
3640 ..concurrency = 1
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Can't run tests in dart2js on Travis since the suite takes too long to load and times out.
4+ # Run on Smithy instead.
5+ # See https://github.com/Workiva/over_react/issues/36
6+
7+ set -e
8+
9+ # Trick the test package into using Chromium instead of Chrome
10+ TMP_BIN=$( mktemp -d)
11+ ln -s " $( which chromium-browser) " " $TMP_BIN /google-chrome"
12+ export PATH=" $PATH :$TMP_BIN "
13+
14+ # Run the tests
15+ DART_FLAGS=--checked xvfb-run -s ' -screen 0 1024x768x24' pub run dart_dev test -p chrome
16+
17+ # Be sneaky and clean up our tricks
18+ rm -rf " $TMP_BIN "
You can’t perform that action at this time.
0 commit comments