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

Debugging in gradle-Task no longer working #208

Open
Rdeisenroth opened this issue Feb 4, 2023 · 0 comments · May be fixed by #295
Open

Debugging in gradle-Task no longer working #208

Rdeisenroth opened this issue Feb 4, 2023 · 0 comments · May be fixed by #295
Labels

Comments

@Rdeisenroth
Copy link
Contributor

This issue aims to document the reasons for why debugging does no longer work and does not expect a fix soon

Since v0.8.0 or more precisely since #201, debugging using the graderPublicRun or graderPrivateRun tasks is no longer possible.

why?

In order to address #83 and some other issues such as memory leaks and only partial Mockito-Support, jagr decided to replace the gradle-specific executor mode with the process-mode which downloads the fat-jar and uses this to run all the tests. While this archieves the goal of fully supporting mockito (and especially mockStatic), it renders the gradle debugger useless for now.

how to fix?

In order to fix this issue, a whole new execution mode using java-exec would be necessary, which is currently not planned.

what to do instead?

Since popular mocking frameworks are now fully supported, the test-creators can and should ensure regular Junit-compatibility as much as possible which will enable granular per-test debugging and should now work mostly the same within jagr. If tests are only compatible with full jagr runs, they should be marked as such.

TL;DR

Test development is now easier than ever, but debugging should be done in Junit for now.

@alexstaeding alexstaeding linked a pull request May 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants