https://kotlinlang.org logo
#minutest
Title
# minutest
c

christophsturm

05/16/2020, 10:43 AM
does anyone use minutest together with the testlogger plugin? (https://github.com/radarsh/gradle-test-logger-plugin) is there a way to make it support nested contexts? for me it just outputs the test name but not the context name.
looks like this:
Copy code
r2dbcfun.R2dbcRepoTest fails fast if PK has more than one constructor PASSED
r2dbcfun.R2dbcRepoTest can insert data class and return primary key PASSED
r2dbcfun.R2dbcRepoTest supports nullable values PASSED
r2dbcfun.R2dbcRepoTest can load data object by id PASSED
r2dbcfun.R2dbcRepoTest can update objects PASSED
and this is how it should look:
d

dmcg

05/16/2020, 10:46 AM
Not a thing I’ve seen I’m afraid. Gradle and logging are the bane of my life
c

christophsturm

05/16/2020, 10:46 AM
its a really nice plugin that seems to make test logging in gradle much nicer.
r

robfletcher

05/18/2020, 4:13 PM
There are a couple of open issues and looks like some in-progress work for handling nested contexts. It’s not there yet, but hopefully it will arrive.
I started using that plugin recently when trying to debug an issue where test run order on CI exposed a leak that wasn’t apparent locally. It’s a lot easier to use that plugin than to try to figure out the incantations required to get Gradle to log what tests it’s running.
c

christophsturm

05/25/2020, 8:59 AM
yes i saw the plugin when looking at strikt changes.
10 Views