Links

ColdBox Testing Classes

ColdBox Testing Classes
Before we begin our adventures in testing, let's review what classes ColdBox gives you for testing and where you can find them. From the diagram, you can see that our pivot class for testing is the TestBox BaseSpec class.
From that superclass, we have our own ColdBox BaseTestCase , our base class for any testing in ColdBox, and the class used for Integration Testing. We then spawn several child classes for targeted testing of different objects in your ColdBox applications:
Test Class
Description
BaseTestCase
Used for Integration Testing
BaseModelTest
Used for model object unit testing
BaseInterceptorTest
Used for interceptor unit testing
BaseHandlerTest
Used for isolated handler unit testing
Last modified 6mo ago