# Workflows for modularised Android projects

**URL:** <https://discuss.bitrise.io/t/workflows-for-modularised-android-projects/10902>\
**Category:** Question & Answer\
**Tags:** android\
**Created:** [November 8, 2019, 5:09pm UTC](https://discuss.bitrise.io/t/workflows-for-modularised-android-projects/10902 "2019-11-08T17:09:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitherejoe](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/hitherejoe/32/2634_2.png) [@hitherejoe](https://discuss.bitrise.io/u/hitherejoe)\
**Post date:** [November 8, 2019, 5:09pm UTC](https://discuss.bitrise.io/t/workflows-for-modularised-android-projects/10902/1 "2019-11-08T17:09:24Z")

</div>

Hey there 👋

Our project is slowly becoming more modularised and we’re wanting to update our bitrise workflows to reflect this. For example, if we have modules A / B / C and we make a change in module C, we don’t want to run our unit/UI tests for modules A and B, only for module C. And if module B has also changed, we also want to run everything for that module too.

I tried setting this up in a single workflow, but I read that you can only use Firebase test suite with a single ‘build’ - so in the example above, we couldn’t run our UI tests for both module B and module C as separate workflow steps - is that correct?

I started playing with the ‘Bitrise Start Build’ and ‘Bitrise Wait for Build’ steps, which would theoretically work but I don’t think this is very scalable. For example, we already have around 12 modules - this means that we are going to have multiple concurrent builds running for every module that has changed (we only have 3 concurrent builds at the moment) - this will cause things to get blocked and not really result in much time saved from our builds. It also means we have to add a new workflow ‘wait for build’ every time we add a new module to our project. This way is doable, but I have these uncertainties!

I wanted to ask if there were any better solutions here that I may not have thought about yet, or if anyone has done anything similar before? 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [November 10, 2019, 4:49pm UTC](https://discuss.bitrise.io/t/workflows-for-modularised-android-projects/10902/2 "2019-11-10T16:49:08Z")

</div>

> [@hitherejoe](#):
>
> we couldn’t run our UI tests for both module B and module C as separate workflow steps - is that correct?

That’s true at the time of writing. Only one VDT step per workflow works: [Error 403 on subsequent Android VDT steps - #3 by bitce](http://discuss.bitrise.io/t/error-403-on-subsequent-android-vdt-steps/6757/3)

> [@hitherejoe](#):
>
> if there were any better solutions here that I may not have thought about yet, or if anyone has done anything similar before?

Some possible workarounds:

- calculate what modules have changed and pass that information as parameters to builds triggered using Bitrise API
- have one module containing all the UI tests and calculate input parameters deciding which tests will run

---

<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:** [December 10, 2019, 4:49pm UTC](https://discuss.bitrise.io/t/workflows-for-modularised-android-projects/10902/3 "2019-12-10T16:49:11Z")

</div>

Closed on December 10, 2019, 4:49pm UTC

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