IllegalArgumentException: TapeRoot needs to be an instance of AndroidTapeRoot
malachid opened this issue · 1 comments
malachid commented
If you use the .tapeRoot(file)
builder, it constructs a DefaultTapeRoot
, which in turn causes PermissionRule
to fail as it only allows AndroidTapeRoot
parameters.
malachid commented
This is due to the OkReplayRuleChain. You can workaround the issue by doing it manually:
@Rule
public final TestRule testRule = RuleChain.outerRule(new RecorderRule(okReplayConfig)).around(activityRule);