Test Annotations
Here are the annotations you can add to your testing bundle CFC.
Annotation | Type | Required | Default | Description |
| string | false |
| The application mapping of the ColdBox application to test. By defaults it maps to the root. Extermely important this mapping is a slash notation that points to the root of the ColdBox application to test. |
| string | false |
| The configuration file to load for this test, which by convention uses the same configuration as the application uses. This is a dot notation path to a configuration CFC. |
| string | false |
| The named key of the ColdBox controller that will be placed in application scope for you to simulate the ColdBox application. Used mostly on advanced testing cases where you have altered the default application key. |
| boolean | false | true | By default the base test case will load the virtual application into the |
| boolean | false | true | The base test case will unload the virtual application from the |
Examples
Caution The
AppMapping
setting is the most important one. This is how your test connects to a location of a ColdBox application to test.
Last updated