spand
09/03/2020, 12:21 PMtestImplementation project(':hltv-dataaccess').sourceSets.test.output
• Crazy stuff like: https://vkuzel.com/shared-test-sources-in-gradle-multi-module-project
• https://docs.gradle.org/5.6/userguide/java_testing.html#sec:java_test_fixtures Anyone used this with Kotlin?
• Other ?
I do not find any of the above options very appealing. Has anyone found a good solution ? (and why is it good)bbaldino
09/03/2020, 5:46 PMhelpers
(or something) package in the test dir.robstoll
09/03/2020, 7:48 PMspand
09/04/2020, 6:04 AMspand
09/04/2020, 7:49 AMrobstoll
09/04/2020, 8:11 AMspand
09/04/2020, 8:16 AMbbaldino
09/04/2020, 6:16 PMClock
, a fake version of ExecutorService
, etc. Stuff that we find useful in tests. Then the code (multiple artifacts across multiple repos) depends on this common test library (as a test dependency) to use the code there.robstoll
09/04/2020, 6:42 PMDavide Giuseppe Farella
09/05/2020, 6:04 PMDispachersProvider
and I wanna share TestDispatchersProvider
and at the same time I wanna use it for X testsbbaldino
09/05/2020, 7:34 PMDavide Giuseppe Farella
09/05/2020, 10:20 PMbbaldino
09/08/2020, 9:57 PMDispachersProvider
does, but if it's a helper type which doesn't depend on other things in the project, we'd have that in a utils or common code repo which doesn't rely on any of our other stuff.bbaldino
09/08/2020, 9:57 PMDispachersProvider
goes in the utils repo and TestDispatchersProvider
goes in the test utils repoDavide Giuseppe Farella
09/09/2020, 3:41 PM