Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise dependencies #391

Open
TWiStErRob opened this issue Mar 21, 2023 · 0 comments
Open

Revise dependencies #391

TWiStErRob opened this issue Mar 21, 2023 · 0 comments

Comments

@TWiStErRob
Copy link
Owner

TWiStErRob commented Mar 21, 2023

After #306 is implemented revise dependencies to be on the correct test path, e.g. for :backend:sync:

dependencies {
	testImplementation(projects.testHelpers)
	testFixturesImplementation(projects.backend.database)
	testFixturesImplementation(projects.testHelpers)
	testFixturesImplementation(libs.kotlin.stdlib8)
	testFixturesImplementation(libs.test.jfixture)
}
testing {
	suites {
		named<JvmTestSuite>("unitTest") {
			dependencies {
				implementation(libs.test.jfixture)
				implementation(libs.test.hamcrest)
				implementation(libs.test.shazamcrest) {
					// Exclude JUnit 4, we're on JUnit 5, no need for old annotations and classes
					// Except for ComparisonFailure, which is provided by :test-helpers.
					exclude(group = libs.test.junit.vintage.get().module.group, module = libs.test.junit.vintage.get().module.name)
				}
				implementation(libs.test.mockito)
				implementation(libs.test.mockito.kotlin)
				implementation(testFixtures(projects.backend.database))
				implementation(libs.jackson.module.kotlin)
				kapt(project.libs.dagger.apt)
			}
		}
		named<JvmTestSuite>("functionalTest") {
			dependencies {
				implementation(libs.test.jfixture)
				implementation(libs.test.hamcrest)
				implementation(libs.test.mockito)
				implementation(libs.test.mockito.kotlin)
				implementation(testFixtures(projects.backend.database))
				
			}
		}
		named<JvmTestSuite>("integrationTest") {
			dependencies {
				implementation(libs.test.hamcrest)
				implementation(libs.neo4j.harness)
				kapt(project.libs.dagger.apt)
			}
		}
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant