Which open source CFML frameworks have substantial automated testing for their core features? [closed]

StackOverflow https://stackoverflow.com/questions/19101933

  •  29-06-2022
  •  | 
  •  

Question

I'm curious if there are any free open source projects written with ColdFusion (CFML) that have substantial unit testing or other forms of automated testing already done for the core features?

I'd like to consider basing some of my open source project on existing code if the implementation is following more best practices and has automated tests.

For example, a library for handling form / validation. A library for string manipulations. Database handling, etc.

Edit: MXUnit is fine for unit testing framework, but I'm asking more about non-testing frameworks that have implemented unit tests to verify their features.

Was it helpful?

Solution

If you're looking to get involved in an open source project that is pro-unit testing and involves form / validation then have a look at ValidateThis - http://www.validatethis.org/

When I've added to the framework in the past the guys supporting it have asked for tests to be included where at all possible so there should be plenty there to get you started. I'd advise asking on the VT forums for more information and on how you can support the project.

If you're looking for a unit testing framework for your own projects then I'd recommend MXUnit (http://www.mxunit.org/) which is certainty the most popular U.T. tool in the ColdFusion community at the moment.

In terms of application frameworks that have built in testing features I can only comment on one and that's ColdBox (http://www.coldbox.org/) which I know is built upon MXUnit but also includes a pile of other features including their own mocking tool - Mockbox (http://wiki.coldbox.org/wiki/MockBox.cfm)

OTHER TIPS

Bruce, The ColdBox MVC Platform has always published its Unit Tests as part of the GitHub repo: https://github.com/ColdBox/coldbox-platform/tree/master/testing/cases.

Since you mentioned validation, here are the tests specifically for ColdBox's validation engine: https://github.com/ColdBox/coldbox-platform/tree/master/testing/cases/validation

You will need to tweak some settings to run them locally, but they are all there.

Since you mentioned wanting to build reusable libraries, please check out ColdBox plugins (for small chunks of reusable code) and ColdBox Modules (For more complex functionality that uses all pieces of the MVC platform).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top