Slackbot
02/14/2024, 7:47 AMJavi
02/14/2024, 7:50 AMEmil Kantis
02/14/2024, 7:50 AMJavi
02/14/2024, 7:52 AMEmil Kantis
02/14/2024, 7:55 AMA
produces events on a broker. My integration tests in module A
inspect the broker and assert that the correct things are published.
module B
consumes these events. My integration tests in B
publishes faked events on the broker and assert that the correct side-effects occur, given the event.
If A
and B
run in parallel, the events from tests in A
would cause unexpected side-effects to happen when(if) B
is running at the same timeJavi
02/14/2024, 8:00 AMCristianGM
02/14/2024, 8:04 AMCristianGM
02/14/2024, 8:05 AMEmil Kantis
02/14/2024, 8:12 AMJavi
02/14/2024, 8:18 AMEmil Kantis
02/14/2024, 8:19 AMVampire
02/14/2024, 9:08 AMEmil Kantis
02/14/2024, 2:32 PMbuild.gradle.kts
). Can it be done?Vampire
02/14/2024, 2:32 PMVampire
02/14/2024, 2:35 PMbuildSrc
or an included build anyway, unless you do highly discouraged bad-practice cross-project configuration. πVampire
02/14/2024, 2:36 PMinterface Foo : BuildService<BuildServiceParameters.None>
val foo = gradle.sharedServices.registerIfAbsent("foo", Foo::class) {
maxParallelUsages.set(1)
}
tasks.test {
usesService(foo)
}
Emil Kantis
02/14/2024, 2:37 PMEmil Kantis
02/14/2024, 2:38 PM