-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trim and truncate test failure stack traces for both orchestrator and classic/non-orchestrator modes. #730
Conversation
Nice followup 👍
|
@brettchabot Small follow-up question. Will this change along with #711 be considered in a 1.3.1 release or can it be expected in an alpha release? |
Sorry, the underlying code has changed significantly between 1.3.0 and HEAD, so I don't think this change will be a candidate for a maintenance release. Arguably as well its a new feature as opposed to purely a bug fix. I can see about doing an alpha release soonish though. I don't follow the concern about ActivityTestRule though - its already deprecated in 1.3.0. |
b012324
to
23ae04d
Compare
Oh sorry, I meant:
Currently we are blocked by #446 regarding migration to ActivityScenarioRule. |
Oh darn, thanks for raising this. The 'removed' part of that statement should be deleted IMO. To my knowledge, a public API has never been removed from android.support.test/androidx.test, and I cannot imagine removing ActivityTestRule anytime in the near future. androidx uses semantic versioning - so if we did remove an API, it would be in a 2.0+ release. |
…is deprecated, but is not planned to be removed. See #730 (comment) PiperOrigin-RevId: 329980032
@brettchabot That's good news. I actually have a simple fix for #446 in mind that I wanted to create a change request for, but the setup for the android-test project is kind of a nightmare. Up until now I've spent two whole days trying to create an installation of Ubuntu on a USB-stick. Failed three times by now trying to get Android Studio, Bazel and the AS-Bazel plugin to build the project successfully. |
…is deprecated, but is not planned to be removed. See #730 (comment) PiperOrigin-RevId: 329980032
…is deprecated, but is not planned to be removed. See #730 (comment) PiperOrigin-RevId: 330573703
Sorry for the trouble. What OS do you primarily use? Bazel itself does support Windows and Mac, so if it helps you can build and run the robolectric tests on mac at least. Currently linux is needed for building/running tests on emulators and apparently building the maven repository (#734) |
@brettchabot Ahh, no worries. It's nice to learn a bit about Bazel and all its intricacies. Actually just got it to build on my Mac. Had to add the following to my WORKSPACE file: ...
android_sdk_repository(
...
path = "/Users/<username>/Library/Android/sdk",
...
)
... Thanks for the info on Mac-support (my primary OS by the way). I thought only Linux was supported from the Contributing doc. |
7c9cce7
to
d1f9226
Compare
… classic/non-orchestrator modes. This change should clean up test failure reporting by: - Remove test runner framework related stack frames - Truncate stack traces to a 64KB size when running under orchestrator to attempt to avoid binder transaction limits. This limit is already enforced when running in classic/non-orchestrator mode JUnit 4.13 has a really nice getTrimmedStackTrace feature, but androidx.test is fixed to 4.12 for the time being. So as a temporary workaround, copy the relevant JUnit change junit-team/junit4#1028 into this project. Fixes #729, and hopefully #269 PiperOrigin-RevId: 332051125
d1f9226
to
6660764
Compare
…is deprecated, but is not planned to be removed. See android/android-test#730 (comment) PiperOrigin-RevId: 330573703
Trim and truncate test failure stack traces for both orchestrator and classic/non-orchestrator modes.
This change should clean up test failure reporting by:
to attempt to avoid binder transaction limits.
This limit is already enforced when running in classic/non-orchestrator mode
JUnit 4.13 has a really nice getTrimmedStackTrace feature, but androidx.test
is fixed to 4.12 for the time being. So as a temporary workaround, copy
the relevant JUnit change junit-team/junit4#1028 into this project.
Fixes #729, and hopefully #269