https://kotlinlang.org logo
#mockk
Title
# mockk
d

David Kubecka

03/20/2023, 11:57 AM
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.)
3 Views