How to enable assertions in the Play framework

It took a bit of digging around to figure out how to enable Java assertions for the Play framework, but the answer was simple in the end:

$ export JAVA_OPTS=-ea

This sets the (quasi-standard) JAVA_OPTS environment variable which is incorporated into the SBT launch command.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s