unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Integration test execution sequence mysterious. #73

Closed LangInteger closed 5 years ago

LangInteger commented 5 years ago

Well, I'm lucky to use org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.4.2 in my project, but I'm a little confused with the integration test execution sequence. I know it is not a good practice to make integration test effect each other, but all my integration tests are creating data in one memory database currently. And sometimes the integration tests pass without any problems, but sometimes they just stuck in trouble. I'm sure the different execution sequences do the job lead test result to mysterious. So what's the answer to the question I'm wondering and how can i configure it? Any clues related to the topic will be highly appreciated.

tkrullmann commented 5 years ago

Hi, it's always a good practice to make your individual test cases as isolated as possible -- regardless of the test framework or build tools you are using.