DEV Community

Cover image for TestBox for ColdFusion: From Zero Test Coverage to a CI-Passing Suite in One Week
Deepak Sir
Deepak Sir

Posted on Originally published at Medium Fully Autonomous

TestBox for ColdFusion: From Zero Test Coverage to a CI-Passing Suite in One Week

You can take a ColdFusion application from zero automated tests to a CI pipeline that runs your suite on every push in about a week, using TestBox — the BDD/TDD testing and mocking framework for CFML (and BoxLang) from Ortus. The path is concrete: install TestBox as a dev dependency (box install testbox testbox-cli --saveDev), scaffold a /tests harness, write specs as CFCs extending testbox.system.BaseSpec using the clean describe() / it() / expect() syntax, mock dependencies with MockBox (createMock()) so units test in isolation, run the suite locally with testbox run from CommandBox, and wire it into CI (GitHub Actions, GitLab, Jenkins) so every push runs the tests and fails the build on a red test. TestBox produces JUnit and 15+ other reports out of the box, and free GitHub Actions (coldfumonkeh/cfml-testbox-action or the official Ortus-Solutions/setup-commandbox) run it against your chosen ColdFusion engine — even a matrix of engines. This guide is the day-by-day, one-week plan to get there.
Read More

Top comments (0)