-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with customized template report creation #254
Comments
The default MD template is tested in every build. |
Yeah versions are correct afaik. I just generated a dummy project from spring initializr and added minimal setup and one dummy test. Here you can see the same error. If you run a |
The MD template seems to have a bug: if ( feature.attachments.size > 0 ) On line 32 for me... if ( feature.attachments.size() > 0 ) And try again? |
Yeah that solved it. Very nice, thanks for you help again and you quick reply! |
I will keep this open as I'll have to release a fix. |
This line has been the same since 2016. There seems to be tests that check this. I just don't understand how this could break now, or how it was actually working?! The code is printing "See: " if that condition is true: if ( feature.attachments.size > 0 ) {
out << '\n#### ' << 'See:' << '\n\n' There's a test that checks this: https://github.com/renatoathaydes/spock-reports/blob/master/src/test/resources/FakeTest.md (look for "See:") So, this is actually working on my tests :D. My guess is that you used a specific version of Groovy that made |
(cherry picked from commit 9f23feb)
This fix is now released on versions |
We are using customized templates (actually an adoc conversion of provided md templates from this repo) for a while.
Recently we upgraded to java 17 and newest springboot and the report generation started failing with the stated error.
We tried converting back to the included md templates in this repo (https://github.com/renatoathaydes/spock-reports/blob/master/src/main/resources/templateReportCreator/spec-template.md & https://github.com/renatoathaydes/spock-reports/blob/master/src/main/resources/templateReportCreator/summary-template.md) but same error there.
Our config:
Error:
The text was updated successfully, but these errors were encountered: