| commit | 0859ce6f6b25ddeb6ab6529b7621b5b311f3a5a6 | [log] [tgz] |
|---|---|---|
| author | Tony Gentilcore <tonyg@chromium.org> | Mon Jan 11 09:18:35 2016 -0800 |
| committer | Tony Gentilcore <tonyg@chromium.org> | Mon Jan 11 09:18:35 2016 -0800 |
| tree | 2c6425df8158005826bd445bf1ae32d3bed4f61f | |
| parent | 4d80a39016b66978e9343447ee10c3cec06a6820 [diff] |
Fix dart apptest flake on android. There's a good discussion of this issue in dart-lang/test#333. In short, tearDownAll is guaranteed to be called after all tests run. However, apptest.dart explicitly calls close() in tearDownAll, which closes the shell. This close races against the test framework getting around to outputting "All tests pass!". So this patch works around it by instead looking for the message about tearDownAll running with no previously failed tests. BUG=Fixes #394 R=johnmccutchan@google.com, zra@google.com Review URL: https://codereview.chromium.org/1569213004 . Cr-Mirrored-From: https://github.com/domokit/mojo Cr-Mirrored-Commit: 66269650afe77c016cd33903e5d02ea05d879660
Unopinionated tools for running, debugging, testing and benchmarking Mojo apps.
git clone https://github.com/domokit/devtools.git
Devtools offers the following tools:
mojo_run - documentation - shell runnermojo_debug - documentation - debuggermojo_test - apptest runnermojo_benchmark - documentation - perf test runnerAdditionally, remote_adb_setup script helps to configure adb on a remote machine to communicate with a device attached to a local machine, forwarding the ports used by mojo_run.
The library is canonically developed in the mojo repository, https://github.com/domokit/devtools is a mirror allowing to consume it separately.