https://kotlinlang.org logo
#test
Title
r

Robert Menke

08/13/2019, 8:34 PM
Does kotlintest have documentation on interceptors? Can’t seem to find it. I basically want to run my tests in a database transaction and then roll back when finished.
l

LeoColman

08/13/2019, 8:49 PM
Perhaps what you're looking for is Listeners
You can register a listener that will act as a
Before
+
After
on each test
But if you need to control the exact execution of a test, perhaps
Extensions
are more correct
r

Robert Menke

08/13/2019, 8:50 PM
That is perfect @LeoColman thank you!
3 Views