Different test result between cAT and gordon #112
-
Hi, I have a Android project where I would like to use gordon. I noticed that gordon fails some tests but connectedAndroidTest passed. My test case changes date on device before call Is it possible that gordon has some bug related to that? Is there any method to change date on device trough gordon? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is no specific way to change the device date through Gordon. Gordon does support using your specified test runner, including a custom one, so I don't think that would be the issue. Can you try running each of your test methods individually with Gordon? If they each pass individually, then the issue might be related to clearing app state between tests. Gordon does not do anything to clear data between tests (#20 (comment), #2 (comment)). |
Beta Was this translation helpful? Give feedback.
-
@joshschriever Thanks for your reaction. I wasn't aware that gordon is not respecting clearPackage flag from Orchestrator. Indeed, it was a problem with old data on my device. I cleared my storage manually and now everything works perfectlly |
Beta Was this translation helpful? Give feedback.
There is no specific way to change the device date through Gordon.
Gordon does support using your specified test runner, including a custom one, so I don't think that would be the issue.
Can you try running each of your test methods individually with Gordon? If they each pass individually, then the issue might be related to clearing app state between tests. Gordon does not do anything to clear data between tests (#20 (comment), #2 (comment)).