How To Run Integration Tests In Gradle

preview_player
Показать описание
Your Gradle project can easily be setup to run integration tests using a specific Gradle task and source directory. This separates the integration tests from unit tests, making the project easier to understand and helping developers to work more productively.

Discover the simplest way to run integration tests in your Gradle project by adding just a few lines of code to your build script.

▶️ Introduction 0:00
▶️ Integration test overview 0:28
▶️ Setup your Gradle project for integration tests 1:26
▶️ Test Sets plugin (for Gradle up to 7.2) 3:07
▶️ JVM Test Suite plugin (for Gradle 7.3+) 5:25
▶️ Advantages to developer workflow 6:46
▶️ Running other types of tests 7:51
▶️ Final thoughts 8:39

VIDEO RESOURCES
Рекомендации по теме
Комментарии
Автор

This is the best channel I've seem so far when the subject is gradle configurations. Thank you Tom! Your knowledge already save me hours of research on my own

orochaalexandre
Автор

Makes it seem so seamless lol :) Thanks Tom!

davithkane
Автор

Hey Tom,

Could you confirm that the new gradle testSuite plugin does not automatically adds extensions of the implementation and runtimeOnly for the newly created integrationTestConfiguration. So if my production code is dependent on project B using api or implementation, I noticed that I can't use the code in B in my integration tests

Other question: what exactly is the target of a test suite? What does it represent and what could you do with it (perhaps in the future)

Great content by the way and very needed

jovanthournout
Автор

Can integration testing is done manually .

ajit
Автор

I think, for the new Gradle 7.3. plugin you normally also need:
configurations {
testCompile
testRuntime
testImplementation
}

bodo_Te
Автор

Nice error: Caused by: startup failed:

denisstrakhov