commit | 47cf9e33eca4cd6eed343780d81128ccec8b292e | [log] [tgz] |
---|---|---|
author | Michael Bolin <mbolin@fb.com> | Fri Nov 01 12:19:44 2013 -0700 |
committer | Michael Bolin <mbolin@fb.com> | Mon Nov 04 11:17:36 2013 -0800 |
tree | 43416f2e7e8e3d6672783b42341bdd310690faab | |
parent | 93ee1abda9e54c2f2527ec99cb7e9fb4fb5f1a22 [diff] |
Integration test to verify all tests are run on the same thread under @RunWith. Summary: Updated `DelegateRunnerWithTimeout` so that it maintains the default behavior of JUnit where all tests are run on the same thread. We observed some test cases in the wild that relied on this behavior. Specifically, Robolectric tests rely on this due to a check in `org.robolectric.shadows.ShadowLooper`. Test Plan: Add a test to the `RunWithDefaultTimeoutIntegrationTest` test case to exercise the fix. Made `executor` an instance rather than a `DelegateRunnerWithTimeout` field and verified that `RunWithDefaultTimeoutIntegrationTest#testAllTestsForRunWithAreRunOnTheSameThread()` failed.
Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.
To build Buck, run the following:
git clone git@github.com:facebook/buck.git cd buck ant ./bin/buck --help
Apache License 2.0