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

Fix for NPE when the exception in the TestResult is null. #180

Merged

Conversation

osh-zuri
Copy link
Contributor

@osh-zuri osh-zuri commented Nov 7, 2020

This happens when an exception is thrown in the application being tested but isn't added to the gradle TestResult object (as it is a nullable field), which in turn causes no report to be generated; which makes it very hard to see what the actual error in the application is.

@osh-zuri osh-zuri changed the title Fix for NPE when the exception in the RestResult is null. Fix for NPE when the exception in the TestResult is null. Nov 11, 2020
@saw303
Copy link

saw303 commented Dec 29, 2020

@osh-onstructive there is a workaround for this problem. You can set the showExceptions flag to false in your build.gradle.

testlogger {
  showExceptions = false
}

@osh-zuri
Copy link
Contributor Author

osh-zuri commented Jan 2, 2021

@osh-onstructive there is a workaround for this problem. You can set the showExceptions flag to false in your build.gradle.

testlogger {
  showExceptions = false
}

Thanks, but it would be nice to not have to put a temporary workaround into the build.gradle file if possible (just in case it makes in into the production code ;) ).

@radarsh radarsh merged commit 9cc1fdf into radarsh:develop Jan 3, 2021
@radarsh
Copy link
Owner

radarsh commented Jan 3, 2021

Thanks for this PR @osh-onstructive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants