I was recently playing around on the dev branch, and was trying to add some tests–specifically in orm/hibernate. With no modifications, I immediately ran into several errors when running the tests. Some were “APPKEY parameter to the init function is required…”, others were wirebox-related, etc. After playing around a bit, I made a few tweaks to get the errors in the tests to stop:
- Added this.loadColdBox = false; to RestrictionsTest.cfc (this stopped the “APPKEY…” error)
- Turned off eventhandling in Application.cfc - this prevented a lot of errors in test cases for things like testCreateCrieteria(), testCreateAlias(), etc
My question is pretty general, I guess. Are there any special setups/considerations/tricks to circumventing these errors in the tests? I think I’ve got around the ones in the narrow area I’m exploring right now, but would be interested in hearing how others go about doing this.
Thanks!