About Contact me Presentations rss feed  rss

Initialization Error on JVM based tests

08 Feb 2017

If you are working with intellij and gradle you might at some point hit the

Initialization error : “java.lang.AssertionError: Java Assertions should be disabled!”

this is becasue intellij doesn’t import this setting from gradle.

To disable it go to Run -> Edit Configurations… in VM options remove -ea Removing this option means we are not checking for assertions sometimes external libraries use this.

If you want to discuss this post, the best place right now for me is mastodon, please message me with your comment/question.