Skip to content
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

Incorrect exception handling due to poor API of CommandLineRunner #361

Closed
Hello-zoka opened this issue Sep 13, 2024 · 0 comments · Fixed by #381
Closed

Incorrect exception handling due to poor API of CommandLineRunner #361

Hello-zoka opened this issue Sep 13, 2024 · 0 comments · Fixed by #381
Assignees
Labels
bug Something isn't working

Comments

@Hello-zoka
Copy link
Collaborator

Hello-zoka commented Sep 13, 2024

Extends issue #298
Describe the bug

Method createXmlFromJacoco return non-empty string if test case outputs smth. The reason for this is that CommandLineRunner returns the output of the command line process as a string.

If such outputs contain exception-like output(e.g., stack trace), such execution will be held incorrectly

To Reproduce
Generate a test on a class/method outputting something to the stdout

Expected behavior
If execution is successful return an empty string

@Hello-zoka Hello-zoka added the bug Something isn't working label Sep 13, 2024
@Vladislav0Art Vladislav0Art changed the title Incorrect exception handling Incorrect exception handling due to poor API of CommandLineRunner Oct 8, 2024
@Hello-zoka Hello-zoka self-assigned this Oct 9, 2024
@Hello-zoka Hello-zoka linked a pull request Oct 9, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant