Detox automation: Modify GREYElementInteraction.m

129 Views Asked by At

I've been searching for a solution to help me clean up Detox test automation's output, as currently the output is quite messy.. The biggest culprit of the ugliness seems to exist within GREYElementInteraction.m which is seen within the Detox repo, but I'm not sure how to go about tweaking this file. It doesn't exist within the installed Node Modules on the native app, so I'm assuming that this is compiled and used by the javascript files within the detox node modules folder.

Any ideas?

1

There are 1 best solutions below

2
gran_profaci On

Explanation added here:https://github.com/google/EarlGrey/issues/762

It looks like Detox calls into EarlGrey and it does not look as though there is any way to pass in an error to EarlGrey which will turn off the exception from being thrown - thereby preventing the hierarchy / log dump.

If this is passed in, then you should be able to get the required disabling of logs.