
"One of the fun things about immersing myself in BoxLang these past few months is my expose to other products from Ortus. Most recently, I've been doing some contracting with a client that makes use of ColdBox, which for my non-CFML readers out there is probably the most well known, and probably most popular, framework for building enterprise web applications with ColdFusion. As part of that work, I've been integrating TestBox, a testing and mocking framework"
"Can you see the giant "air quotes" up there? By "app", what I mean is I created the simplest possible BoxLang web app I could think of. I gave it an Application.bx file that just had a name: class { this.name = "tbtest0A"; } An index.bxm with just a hello message: <bx:output> Hello World, #now()# </bx:output> And then a class that I wanted to build tests for, services/catService.bx: class { public function getCats() { return [ {"name":"Luna", "gender":"female"}, {"name":"Crackers", "gender":"male"}, ] } }"
A minimal BoxLang web app can consist of an Application.bx declaring a name, an index.bxm producing simple output, and a service class returning data. TestBox can be installed into the application using the CommandBox command box install testbox, which places TestBox under a testbox folder inside the app. The installed testbox folder can generally be ignored. ColdBox is a popular ColdFusion framework; TestBox works well with ColdBox and now supports BoxLang. Some small integration issues may appear when first configuring tests, but basic setup functions as expected.
Read at Raymondcamden
Unable to calculate read time
Collection
[
|
...
]