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

Testing on real device logs not showing #207

Open
Marzdor opened this issue Oct 13, 2020 · 2 comments
Open

Testing on real device logs not showing #207

Marzdor opened this issue Oct 13, 2020 · 2 comments
Assignees
Labels

Comments

@Marzdor
Copy link

Marzdor commented Oct 13, 2020

I have recently been using cavy to start testing an app and have some tests.

When I run them on an ios simulator using cavy run-ios --skipbuild the test results show in the terminal as they pass or fail.

However, when running on a real ios device using the same command it just says
cavy: Listening on port 8082 for test results...
I also tried added --xml but not sure if that is doing anything either.

Is there some extra configuration that needs to be done to get them to show like the do on a simulator?

@em-cd
Copy link
Contributor

em-cd commented Oct 23, 2020

Hi @Marzdor! We'll look into this issue for you and let you know what we find. Thanks for your interest in Cavy :)

@jalada
Copy link
Contributor

jalada commented Nov 16, 2020

HI @Marzdor, we think this is an issue because the real device cannot communicate with Cavy's test result server in the same way the simulator can, because the simulator is running on the same machine as the test result server but your device isn't.

It's on our list to look for a fix. The React Native CLI finds a way around this to send the JS bundle to the device, we can probably find some way of mimicking that.

In the meantime, you can use Cavy purely on-device. Monitor the React Native debugger console; Cavy will output tests results there.

@jalada jalada added the bug label Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants