FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

ITB2021-Using Testbox to refactor old code

v0.0.4 Public

As much as the need for full code coverage and writing your code a certain way to make it testable is discussed, if you have thousands of lines of code in dozens or hundreds of files, the idea of having any code coverage at all might seem daunting and beyond feasibility. In this session, we will start with a page of code that needs to be refactored how we can use Testbox to simply run functions in isolation. This has the immediate benefit of being able to test whether a function is working as expected without having to navigate through the front end of your app to get to a particular state. After running the function in isolation, we will write a few tests on the code "as is" and then start to refactor it using Testbox to slowly build up our code coverage. Along the way, we will look at some refactoring techniques and also concept of mocking.

Dependencies (0)

Dev Dependencies (0)

  •   Dan Card
  • Published
  • 0.0.4 is the latest of 5 release(s)
  • Published on {{ getFullDate("Sep 23 2021 08:09 PM GMT") }}

$ box install itb2021_using_testbox_to_refactor_old_code

No collaborators yet.
  • {{ getFullDate("Sep 23 2021 08:09 PM GMT") }}
  • {{ getFullDate("Sep 23 2021 08:09 PM GMT") }}
  • 526
  • 0
  • 12