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
Mock Fails Only in Debug Mode When Using mock-maker-inline #1872
Comments
Any updates on this, facing the same issue |
@anuragagarwal561994 Given the large number of open issues, it seems unlikely that we will see movement on this in the near future. The project maintainers seem fairly overwhelmed. |
Please provide a reproduction project that we can test out with. |
So I checked the documentation and may know the reason behind this:
When the debugger is initiated the -javaagent jar used by IntelliJ is different as far my understanding is and that may be leading to this issue. @TimvdLippe for reproduction if you have inline-mock setup via resources folder you can just try to run your test case in debugger env. in IntelliJ community edition. I am not sure what else I can provide here. |
Mockito version: 3.1.0 with
mock-maker-inline
enabledIntelliJ version: 2019.3
The below stack track only happens when debugging AND using
mock-maker-inline
.I tried running debug from IntelliJ, and attaching IntelliJ to remote process. Both ways fail.
mock-maker-inline
+ Normal Run Mode = WorksNo
mock-maker-inline
+ Normal Run Mode = Worksmock-maker-inline
+ Debug Mode = FailsNo
mock-maker-inline
+ Debug Mode = WorksThe text was updated successfully, but these errors were encountered: