# Detox - AWS Device Farms/ Bitbar

**URL:** <https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458>\
**Category:** Question & Answer\
**Created:** [July 19, 2021, 5:06pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458 "2021-07-19T17:06:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajath.rao](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rajath.rao](https://discuss.bitrise.io/u/rajath.rao)\
**Post date:** [July 19, 2021, 5:06pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/1 "2021-07-19T17:06:02Z")

</div>

Hello, is there support for BitBar/ AWS device Farm with Detox. Currently we are using Detox but unable to run emulators on the same.

Can someone point me in the best direction to run Android E2E tests for Android ?

---

<div class="post-metadata">

**Author:** ![Roland-Bak](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/roland-bak/32/3480_2.png) [@Roland-Bak](https://discuss.bitrise.io/u/Roland-Bak)\
**Post date:** [July 20, 2021, 11:36am UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/2 "2021-07-20T11:36:08Z")

</div>

Hello @rajath.rao 👋

We do not have any official steps for Detox, so the only thing we can do is provide guides and best practices. The guide we have for Detox is [Running Detox tests on Bitrise | Bitrise DevCenter](https://devcenter.bitrise.io/testing/running-detox-tests-on-bitrise/). Other than that we have some Detox related issues and solutions on Discuss and we also have this blog post: [https://blog.bitrise.io/testing-in-react-native-jest-detox](https://blog.bitrise.io/testing-in-react-native-jest-detox).

Hope this helps! 🙂

---

<div class="post-metadata">

**Author:** ![ashishnarmen](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ashishnarmen/32/3352_2.png) [@ashishnarmen](https://discuss.bitrise.io/u/ashishnarmen)\
**Post date:** [July 24, 2021, 1:08pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/3 "2021-07-24T13:08:13Z")

</div>

Detox is primarily aimed at iOS. Its support for Android used to be very limited (might have changed now). The most reliable way to run Android UI tests is through Espresso. The rest of the tools have various limitations. Further, running Android tests on CI is not straightforward. The tools have serious limitations and the documentation is usually convoluted.

---

<div class="post-metadata">

**Author:** ![rajathrao](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/rajathrao/32/3713_2.png) [@rajathrao](https://discuss.bitrise.io/u/rajathrao)\
**Post date:** [July 24, 2021, 11:16pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/4 "2021-07-24T23:16:18Z")

</div>

Hello , we are already running the iOS tests on Bitrise . So you suggesting that we run espresso separately on Bitrise ? Also most test currently run on detox android emulator locally . I am weary of the effort it could take to rewrite tests in espresso … any suggestions please @ashishnarmen

---

<div class="post-metadata">

**Author:** ![rajathrao](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/rajathrao/32/3713_2.png) [@rajathrao](https://discuss.bitrise.io/u/rajathrao)\
**Post date:** [July 24, 2021, 11:18pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/5 "2021-07-24T23:18:34Z")

</div>

Hello I know officially you don’t support detox ? But can I ask if there are customers who use Bitrise and run android tests on your pipelines ? That would make my life easier to decide if it’s even worth trying running my android detox specs on Bitrise … there are already issues running the same and was not sure what to do … iOS runs perfectly fine on Bitrise @Roland-Bak

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [August 2, 2021, 9:01pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/6 "2021-08-02T21:01:08Z")

</div>

You may want to check out previous discussions on this:

> [@React Native Android Detox Tests Not Working](http://discuss.bitrise.io/t/react-native-android-detox-tests-not-working/15700/2):
>
> Howdy @denizbilgin! Many of our customers are able to use Detox on Bitrise and we do offer some best practices. With that said, we don’t officially support Detox. There’s a limit to the scope of support we can provide, although we do make a best effort to help. I have two suggestions. First, if you haven’t read through our Detox documentation I suggest that you check it out: [https://devcenter.bitrise.io/testing/running-detox-tests-on-bitrise/](https://devcenter.bitrise.io/testing/running-detox-tests-on-bitrise/) Second, a lot of folks aren’t aware that the Andro…

> [@Installing apk never finishes, making detox android e2e tests time out](http://discuss.bitrise.io/t/installing-apk-never-finishes-making-detox-android-e2e-tests-time-out/8314):
>
> Bitrise Build Issue Report template Description of the issue I’m trying to run Detox e2e tests on android in bitrise. I have the same tests working in travis and locally. For iOS, it works fine locally, on travis, and on bitrise. Everything with creating the emulator, starting it, building the android app and instrumentation seems to work. Then when it’s installing the apk to the emulator it just never proceeds and triggers the timeout instead. Environment: Where did the issue happen? Andro…

If you are using standard machines, you may also want to consider upgrading your plan to use the elite machines as this can be resource intensive. You can also open a ticket with support and request a free trial with the elite machines to try.

---

<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:** [September 1, 2021, 9:01pm UTC](https://discuss.bitrise.io/t/detox-aws-device-farms-bitbar/17458/7 "2021-09-01T21:01:44Z")

</div>

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