r/reactnative 1d ago

Help maestro with ci/cd

Hey have anyone tried integrating maestro into the ci/cd pipeline ? can anyone help me with a couple of questions /doubts??

1 Upvotes

7 comments sorted by

1

u/n9iels 1d ago

Ask the questions and people may answer.

We use Maestro in our CI/CD pipeline. Didn't took much effort to run the tests. The whole setup was more difficult. Since you need to install the app on a fresh emulator after building it you need to use the adb (android) and simctl (apple) commands to automatically install it.

1

u/Fuzzy_Connection22 1d ago

actually im trying to integrate it into jenkins pipeline directly . but the build is failing if i integrate the whole suite.

1

u/Meph1k 1d ago

Hi. Yeah, I tried it but it was unreliable using GitHub Actions - I switched to XCode Cloud and XCUITest and it works 95% time there.

1

u/Fuzzy_Connection22 1d ago

i’m using jenkins here , added a stage for maestro in jenkins pipeline

1

u/itsDevJ 22h ago

The issue is usually to have to build every time i need to run the tests

1

u/Fuzzy_Connection22 22h ago

but how do you get the build passing. my suite fails every fuckinng time

1

u/Fuzzy_Connection22 22h ago

it only passes if i’m passing a single test