AdevintaSpain / Barista

:coffee: The one who serves a great Espresso
Other
1.7k stars 120 forks source link

Please update to espresso 3.6.0-rc01 or higher and fix BaristaIntents.mockAndroidCamera() #540

Open wbearand opened 5 months ago

wbearand commented 5 months ago

Library Version:

4.3.0

Describe the Bug:

In our app, we use espresso 3.6.0-rc01. Barista uses 3.4.0 it seems. As a consequence, the tests that use BaristaIntents.mockAndroidCamera() fail with:

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/test/espresso/core/internal/deps/guava/base/Preconditions;

It seems that this preconditions were removed, and now this checks should be used.

Steps to reproduce the bug:

  1. Update espresso to 3.6.0-rc01
  2. run a test that uses BaristaIntents.mockAndroidCamera()

Expected Behavior:

That no ClassNotFoundException is thrown.