The Process of Unit Testing

Whether Harness2 is used to create test harnesses or they are coded by hand, the process of actually performing the test is the same. Variables required by the fuse are set in the test harness, and the test harness is called in a browser.

It might seem that if the fuse runs successfully, the test is complete and the coder can move on to another fuse. However, it’s important to examine the fuse’s Fusedoc for indications of how the fuse’s inputs might vary, and run additional tests accordingly. For example, the Fusedoc might specify that if a certain input variable is above a given value, one output variable should be created; if the input variable is below the value, a different output variable should be created. Both ...

Get Fusebox: Developing ColdFusion® Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.