Closed gkurmaev closed 1 year ago
Removing the extra space after the comma actually fixed the issue, so
outputFormatter = "json,html"
Looks like a small typo in the groovy to kotlin migration. The groovy code used String's replaceAll
which takes a regex, whereas the kotlin version uses replace
which does not.
hmm.. seems that kotlin's replace is the same as Java's replaceAll, so I'm not sure why it wouldn't take.
Oh, they have multiple variants overloaded with the same name and different behavior. Very confusing stdlib, but I think we can use a trim() here. Seems kotlin has many footguns, like their infamous non-atomic operations on atomics...
It should have been formatterOriginal.replace(Regex("\\s"), "")
, but did a string replacement instead.
Oh wow, that was rather unexpected of you to actually fix a closed issue, thanks!
After update yesterday our task, which is configured the following way:
is no longer generating json and html reports (but a json and txt instead), which we uploaded somewhere else as a part of CI-pipeline, thus breaking it.