Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5973501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:48:32+00:00 2026-05-22T20:48:32+00:00

I have about 400 unit tests that I have written for my Android application.

  • 0

I have about 400 unit tests that I have written for my Android application. If I run the tests package by package, everything works fine and all my tests pass. However, if I try to run them all at once, eventually (about 360 tests in), Android starts spitting out !!! Failed Binder Transaction Errors !!!. After about 10-20 of these errors, the process for the application I am testing gets killed and the unit tests never even complete.

I should note that during this time Eclipse reports Collecting test information in the Console. I think that is odd because it shows that it is running tests even though the JUnit UI doesn’t reflect that. When everything works properly, during the Collecting test information phase I see the tests run, the JUnit UI then comes up, and then all the tests are run again (I know this by reading logcat). That is (I think) a separate issue, but I felt I would mention it if anybody knew what that was about.

Edit as of June 6th 2011

As per Christopher’s answer below, I have verified that this only happens when attempting to run this through Eclipse. If i run my test suite using ANT, all the tests finally execute.

When I attempt to run my test suite now, Eclipse essentially hangs on “collecting test information”. I haven’t let it run for an extended period of time, but I will give that a try as soon as I can to see if it ever completes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:48:33+00:00Added an answer on May 22, 2026 at 8:48 pm

    I investigated this again and, as far as I can tell, this is purely an issue with the Android Eclipse plugin. An issue that seems to be fixed, but still can occur sometimes (possibly it’s machine-dependent).

    As you mention, the Eclipse plugin appears to run all the tests twice. What it’s actually doing the first time is gathering the test suite and test names, so that it can show all the test names in that nice hierarchical JUnit UI.

    However, “running” the tests like this seems to cause a problem. As part of Android SDK Tools v8, a “workaround” was added which places a 15ms delay between checking each test. This is done to prevent “Binder transaction failures … for large test suites”.

    Indeed, I went back to my project that was having the “FAILED BINDER TRANSACTION” errors, and I could not reproduce it on the command line. We also tried in Eclipse and it couldn’t be reproduced any more (even although I’m sure we had SDK Tools r8+ when we originally saw this).

    However, I can still generally reproduce it in Eclipse. Try running your tests again from Eclipse with the latest Android tools, or try out this minimal GitHub repository I created and see if you can reproduce it:
    https://github.com/orrc/android-large-test-failures#readme

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a gridview with about 300-400 rows that I use for reporting; it
I am working on a java web application that gets hit about 400,000 times
I have about 400 MKAnnotationView´s that loads simultaneously into the MKMapView. I understand that
I have a table that has about 400,000+ rows. I am writing some pattern
I have read this article about 400% boost of your website . This is
I have about 150 000 rows of data written to a database everyday. These
I have about 200 Excel files that are in standard Excel 2003 format. I
I have about 10million values that I need to put in some type of
I have about 10 drop down list controls that get populated. Instead of copying/pasting
I have about 2000 lines of javascript code for my application. A lot of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.