Not sure if this is the right place but I want to ...
# mockk
d
Not sure if this is the right place but I want to ask a question related to https://github.com/mockk/mockk/pull/965. I successfully used the workaround but now wanted to add another JVM arg param (
Xss
). So I ended up with
Copy code
<configuration>
                    <!--workaround <https://github.com/Ninja-Squad/springmockk/issues/65-->>
                    <argLine>--add-opens=java.base/java.lang.reflect=ALL-UNNAMED</argLine>
                    <argLine>-Xss4m</argLine>
                </configuration>
Only after some time I learned that this broke
mvn verify
, probably because
argLine
is meant to be specified only once. I know how to fix that but what's bugging me is that even with this faulty config the tests ran just fine in IDEA. Does anybody what magic it applies to run the tests? (And it surely takes the mvn config into account because without the
add-opens
workaround, the tests won't run even there.)