Код: Выделить всё
..."Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0."
< /code>
Дело Описание: < /p>
[list]
[*] Прикреплена к кодовой базе проекта. //(Required) Writing and executing Unit Tests on the JUnit Platform
testImplementation "org.junit.jupiter:junit-jupiter-api:5.2.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.2.0"
// (Optional) If you need "Parameterized Tests"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.2.0"
// (Optional) If you also have JUnit 4-based tests
testImplementation "junit:junit:4.12"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.2.0"
testImplementation "io.mockk:mockk:1.8.5"
Обновлено gradle-wrapper.properties
distributionUrl=https ... /> После того, как вся эта града была построена успешно < /p> < /li>
Создал тестовый Calss < /p>
Код: Выделить всё
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class TestClass {
@Test
internal fun testName() {
Assert.assertEquals(2, 1 + 1)
}
}
[/list]
В результате я не смог построить приложение, и я получил неудачу:>
Подробнее здесь: https://stackoverflow.com/questions/516 ... tible-with
Мобильная версия