Add JUnit5 extension to run test twice against different databases (#588)

* Add JUnit5 extension to run test against different databases

* Fix typos

* Add some explanation
This commit is contained in:
Shicong Huang 2020-05-18 11:06:21 -04:00 committed by GitHub
parent 5e596bb389
commit a0f4013d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 254 additions and 63 deletions

View file

@ -880,6 +880,9 @@ task standardTest(type: FilteringTest) {
// forkEvery 1
// Sets the maximum number of test executors that may exist at the same time.
// Also, Gradle executes tests in 1 thread and some of our test infrastructures
// depend on that, e.g. DualDatabaseTestInvocationContextProvider injects
// different implementation of TransactionManager into TransactionManagerFactory.
maxParallelForks 5
systemProperty 'test.projectRoot', rootProject.projectRootDir