# How can I prevent the deploy to bitrise step to ignore the test apk?

**URL:** <https://discuss.bitrise.io/t/how-can-i-prevent-the-deploy-to-bitrise-step-to-ignore-the-test-apk/15937>\
**Category:** Question & Answer\
**Tags:** android\
**Created:** [February 26, 2021, 4:06am UTC](https://discuss.bitrise.io/t/how-can-i-prevent-the-deploy-to-bitrise-step-to-ignore-the-test-apk/15937 "2021-02-26T04:06:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timatoe](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/timatoe/32/3409_2.png) [@timatoe](https://discuss.bitrise.io/u/timatoe)\
**Post date:** [February 26, 2021, 4:06am UTC](https://discuss.bitrise.io/t/how-can-i-prevent-the-deploy-to-bitrise-step-to-ignore-the-test-apk/15937/1 "2021-02-26T04:06:01Z")

</div>

How can I prevent the deploy to bitrise step to ignore the ‘\*androidTest.apk’ files?

---

<div class="post-metadata">

**Author:** ![oliver.falvai](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/oliver.falvai/32/5030_2.png) [@oliver.falvai](https://discuss.bitrise.io/u/oliver.falvai)\
**Post date:** [March 8, 2021, 11:54am UTC](https://discuss.bitrise.io/t/how-can-i-prevent-the-deploy-to-bitrise-step-to-ignore-the-test-apk/15937/2 "2021-03-08T11:54:06Z")

</div>

Hey @timatoe,

The Deploy step deploys everything in the `$BITRISE_DEPLOY_DIR` folder, and it’s actually a previous Android build or Gradle runner step that copies the APK to that folder. To prevent that, you need to edit the configuration of your Android or Gradle step, where you can find include and exclude filters for the test APK.

---

<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:** [April 7, 2021, 11:54am UTC](https://discuss.bitrise.io/t/how-can-i-prevent-the-deploy-to-bitrise-step-to-ignore-the-test-apk/15937/3 "2021-04-07T11:54:06Z")

</div>

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