-
Jun 30th, 2011, 03:39 PM
#1
Turning off Assertions
We'd like to use Grails/Groovy assertions in the same way as we can with Java ones, so we can turn on during QA and turn off in production. It appears that Groovy assertions cannot be turned off.
It this true? If so, can it be changed? I understand about pre and post conditions etc, but I think that not being able to turn off assertions robs them of one of their main uses:to instrument code to trap bugs during testing. You wan to be able to assert complicated checks for testing, but not pay that overhead in production.
Any hints would be gratefully received.
Richard
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules