Open blackwinter opened 2 years ago
metafacture-fix
could also benefit from this.
Maybe also print Morph/Fix script on failure.
As these scripts can comprise several thousand lines a snippet would be fine.
As these scripts can comprise several thousand lines
Not usually in tests, though, right? Those are (almost?) always small scripts with the minimum number of instructions required for the particular test.
BTW: This idea was inspired by the Metafix test helper, only limited to test failures so it wouldn't clutter the regular test output.
Ah, right, sorry, of course - it's about tests ... so just ignore my comment :)
configure test logging (
showStandardStreams = true
andexceptionFormat = 'full'
) globally for all subprojects.
Already done in #417.
As mentioned in #386, it would be nice to be able to reuse the stream test pattern (cf. #339) across modules. Currently
metamorph
andmetafacture-mangling
make use of it, plusmetafacture-yaml
once #400 is accepted. There are more candidates that could potentially benefit from it.I'd like to propose
metafacture-test
as a new module, withorg.metafacture.test.StreamTestHelpers
(or maybeorg.metafacture.test.helpers.StreamTest
) as a starting point. There's always the possibility to extract more test patterns in the future.It would be a
testImplementation
dependency for the aforementioned modules.Would something like this be acceptable? (See also the brief discussion in #386.)
P.S.: While at it, it might make sense to configure test logging (
showStandardStreams = true
andexceptionFormat = 'full'
) globally for all subprojects. Unwanted output should be suppressed or otherwise dealt with.