Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IllegalStateException broke report every time #195

Open
xsmrcek opened this issue Oct 9, 2019 · 1 comment
Open

IllegalStateException broke report every time #195

xsmrcek opened this issue Oct 9, 2019 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@xsmrcek
Copy link
Contributor

xsmrcek commented Oct 9, 2019

AbstractXmlReporterExtension.printString() method is called by every print method of report extensions and can throw IllegalStateException. It seems that if this exception is thrown anywhere report is going to be broken.

@xsmrcek xsmrcek added bug Something isn't working enhancement New feature or request labels Oct 9, 2019
@paveljandejsek
Copy link
Contributor

First solution might be to use some buffered stream that would not get flushed when such exception occurs (ie. instead of invalid report there would be no report at all)

Second phase in the future might be to deal somehow with closing opened tags and generate valid report everytime.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants