I am using Spring Boot application with gradle. Currently there are 9 tests will be executed during build and test gradle task. One test is excluded as it will affect the other tests. So I have excluded the SampleTest as below in build.gradle
test {
useJUnitPlatform()
filter {
excludeTestsMatching "com.test.func.SampleTest"
}
}
Now I want to run all the tests in the following order. My SampleTest should be run at end of all tests. How should I achieve it? Any help would be appreciated.
- Other 9 tests
- com.test.func.SampleTest