# Test run failed to complete

**URL:** <https://discuss.bitrise.io/t/test-run-failed-to-complete/9370>\
**Category:** Builds\
**Tags:** android\
**Created:** [June 19, 2019, 6:19pm UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370 "2019-06-19T18:19:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![GErP83](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@GErP83](https://discuss.bitrise.io/u/GErP83)\
**Post date:** [June 19, 2019, 6:19pm UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/1 "2019-06-19T18:19:51Z")

</div>

Hi Everyone,

Maybe someone run into this during android instrumentation tests:  
`Test failed to run to completion. Reason: 'Test run failed to complete. Expected 85 tests, received 9'. Check device logcat for details`

All my android instrumentation tests run perfectly locally, but on bitrise sadly i got this error message, every time now. The provided log do not add any clue for me, what could be the problem. I also not find anything useful, when search for this.

Maybe someone has any advice or run into this issue?

Tyvm

---

<div class="post-metadata">

**Author:** ![BISSERIER](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@BISSERIER](https://discuss.bitrise.io/u/BISSERIER)\
**Post date:** [June 20, 2019, 9:25am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/2 "2019-06-20T09:25:30Z")

</div>

Hello,

I had the same problem with my Android app since 1 week but today all the tests are ok and I don’t know why

If you find the problem can you share it please ?

---

<div class="post-metadata">

**Author:** ![GErP83](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@GErP83](https://discuss.bitrise.io/u/GErP83)\
**Post date:** [June 21, 2019, 4:10pm UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/3 "2019-06-21T16:10:14Z")

</div>

Well i didn’t find the problem, but all my tests are passed, and i didn’t change anything.  
Strange!

---

<div class="post-metadata">

**Author:** ![BISSERIER](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@BISSERIER](https://discuss.bitrise.io/u/BISSERIER)\
**Post date:** [June 25, 2019, 8:17am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/4 "2019-06-25T08:17:56Z")

</div>

Not for me, I’ve make some fix, but in Bitrise I got again this problem

---

<div class="post-metadata">

**Author:** ![GErP83](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@GErP83](https://discuss.bitrise.io/u/GErP83)\
**Post date:** [June 26, 2019, 5:50am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/5 "2019-06-26T05:50:18Z")

</div>

maybe @tamaspapik has an idea?

---

<div class="post-metadata">

**Author:** ![BISSERIER](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@BISSERIER](https://discuss.bitrise.io/u/BISSERIER)\
**Post date:** [June 26, 2019, 8:45am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/6 "2019-06-26T08:45:13Z")

</div>

it’s ok,

Just in the “debug” of the test step, I just set the “timeout” to 3600 secondes instead of 900 secondes

---

<div class="post-metadata">

**Author:** ![raviranjanchaudhari](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@raviranjanchaudhari](https://discuss.bitrise.io/u/raviranjanchaudhari)\
**Post date:** [July 3, 2019, 11:05am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/7 "2019-07-03T11:05:22Z")

</div>

did anyone have answer?

---

<div class="post-metadata">

**Author:** ![BISSERIER](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@BISSERIER](https://discuss.bitrise.io/u/BISSERIER)\
**Post date:** [July 4, 2019, 7:42am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/8 "2019-07-04T07:42:08Z")

</div>

Hello,

When I write just before, try to change the value of the “timeout” value in the test step.  
In the step “Virtual device testing for Android” in the debug section, you have a value for “timeout” set this value to 3600 secondes

---

<div class="post-metadata">

**Author:** ![raviranjanchaudhari](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@raviranjanchaudhari](https://discuss.bitrise.io/u/raviranjanchaudhari)\
**Post date:** [July 4, 2019, 8:14am UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/9 "2019-07-04T08:14:31Z")

</div>

Okay, Thanks!

---

<div class="post-metadata">

**Author:** ![GErP83](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@GErP83](https://discuss.bitrise.io/u/GErP83)\
**Post date:** [July 8, 2019, 1:01pm UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/10 "2019-07-08T13:01:58Z")

</div>

Hey Guys,

I found out, what cause this, with a real device.

Steps:  
1; connect a real device with usb and start testing  
2; wait for the first test to complete  
3; simply disconnect the device  
4; same error: ‘Test run failed to complete. Expected X tests, received Y’.

After the error all tests are continue running on the device, but it’s disconnected.  
I think we have the same situation on firebase test lab.

Have a nice day!

Regards  
Gabor

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [August 7, 2019, 1:02pm UTC](https://discuss.bitrise.io/t/test-run-failed-to-complete/9370/11 "2019-08-07T13:02:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
