Fast automated tests for ColdFusion projects using TestBox
Video demonstration here...
You will need TestBox installed in the webroot of your coldfusion server.
Install the package globaly
npm install -g node-coldfusion-tester
Setting up a ColdFusion project to use this tool
Navigate to your project folder in your terminal of choice and type:
You will be asked some questions:
prompt: The host running your ColdFusion:prompt: Path from the host to the root of your ColdFusion project: some/pathprompt: Name of the folder in your project that contains the tests:prompt: List of folders inside your test folder containing different kinds of tests :prompt: Path from the host to the test runner:prompt: Suffix to be used
This in turn will create a
cf-tester-config.json file in the current folder containing:
Start watching your files
In the terminal you can now type:
And the system will start watching your files for changes and run relevant tests as you save your edits.