Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detox test on iOS #29

Closed
roni-castro opened this issue Dec 30, 2019 · 2 comments · Fixed by #30
Closed

Detox test on iOS #29

roni-castro opened this issue Dec 30, 2019 · 2 comments · Fixed by #30
Labels

Comments

@roni-castro
Copy link
Contributor

roni-castro commented Dec 30, 2019

Question

All the steps to build and test my iOS app on CircleCi have succeeded, except for the
"Detox Test "one.
Do I need to add any configuration to run this last step (Install Detox lib)?
Is it possible to just build the iOS and not run the Detox commands (Configure Detox Environment and Detox tests) as I use Jest+ Enzyme to do it?

CircleCi result print

#!/bin/bash --login -eo pipefail
detox test -c ios.sim.release -l warn --headless
/bin/bash: detox: command not found

Exited with code exit status 127

Version:
react-native-community/react-native@1.3.0
react-native: 0.59.9

.config.yml

      - rn/ios_build_and_test:
          # <<: *master_only
          project_path: ios/OlistApp.xcodeproj
          device: iPhone X
          build_configuration: Debug
          scheme: OlistApp
          detox_configuration: ios.sim.release
          requires:
            - analyse_js
@roni-castro roni-castro changed the title Do I need to have some kind of configuration for running detox test on my project Detox test on iOS Dec 30, 2019
@roni-castro
Copy link
Contributor Author

roni-castro commented Jan 2, 2020

I have Forked the repo and I have created a new job called ios_build, which does not have any Detox configuration and the start of iOS Simulator. It worked for me, can I open a PR and add an example of how to use it?

@react-native-community-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants