AdevintaSpain / AdevintaSpain/Barista

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

Aberta
#540 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Kotlin
Estrelas
1.7k
Forks
119
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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](https://github.com/android/android-test/blob/67a30ef587ced6c178eb20eebfc24c769c6daf7f/espresso/intents/java/androidx/test/espresso/intent/Checks.java#L19) 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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Locate BaristaIntents.mockAndroidCamera() and the Espresso dependency declarations, then reproduce the failure with Espresso 3.6.0-rc01 using a test that calls the method. Compare the failing reference with the linked Espresso Checks.java entry point; done means the test no longer throws NoClassDefFoundError.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
android, kotlin
Domínio
mobile, testing
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.