We have a large coldbox 3.6 application that we would like to go back and add some tests for. I would prefer the BDD style tests, but any tests will be fine at this point. I want to be able to test handlers but more importantly want to be able to test models that are wired up through wirebox and have the settings from the application’s coldbox.cfc config file loaded in. I’d also like to be able to specify the environment for it to use if thats possible, but if not thats ok. The documentation that I have found and that Brad linked me to doesn’t seem to talk about how to achieve this - i’ve used testbox previously on other projects but specifically i’m trying to figure out how to get it to test a specific coldbox application / configuration. Links to the relevant part of the manual if i’m just missing it would be great.
HI Ryan, it looks like no one has responded yet. Perhaps if you can break down a single, more specific question that will help. Are you wanting to do integration tests? This is where an entire ColdBox event is run for realz instead of just hitting a single function with everything mocked. The docs are a little sparse on this. Confirm if that’s what you want and perhaps show us your testing spec and what doesn’t work about it.
Thanks!
~Brad