3 ms·
> That's because starting JVM 22, the previous so-called "dynamic attachment of agents" is put behind a flag. Ok am I being stupid or is the pragmatic solutio
by captainbland 10mo ago
> That's because starting JVM 22, the previous so-called "dynamic attachment of agents" is put behind a flag.
Ok am I being stupid or is the pragmatic solution not to just to enable this flag for test runs etc. and leave it off in prod?
- wging 10mo agoI think the problem is that it's on his users to enable this flag, not something that can be done by Mockito automatically.
- jhhh 10mo agoMost people want their test suite to pass. If they ugprade java and mockito prints out a message that they need to enabled '--some-flag' while running tests they're just going to add that flag to surefire in their pom. Seems like quite a small speedbump.