Questions tagged [testbox]

TestBox is a testing framework for ColdFusion (CFML) from Ortus Solutions. It is based on Behavior Driven Development (BDD).

TestBox allows testing ColdFusion applications using Behavior Driven Development (BDD). It also supports style of testing.

It includes a mocking & stubbing framework called MockBox.

The framework provides different ways to output the test results like JSON, XML and HTML, among others. It is also extensible, so users can write their own reporters and runners.

Links

6 questions
3
votes
1 answer

Coldfusion - Cant find testbox

I have a coldfusion application that i would like to start writing unit tests for. I found testbox, and think it would be a great testing library to use. I followed the installation instructions, but my cold fusion app is throwing an error when i…
AJ_
  • 3,787
  • 10
  • 47
  • 82
1
vote
1 answer

Dependency Variable Doesnt Exist

Newbie in coldbox so please have patience with me. I am trying to implement TDD on my coldbox application. Under my service model I inject this dependency. property name="wirebox" inject="wirebox" property name="populator"…
1
vote
1 answer

Postgres Privileges issue

I am having issues setting up a new user in postgres, and part of it is probably my knowledge of how things work behind the scenes in postgres. I'm using TestBox and Lucee to run unit tests and everything works as expected under the postgres…
user2921015
  • 69
  • 1
  • 9
1
vote
1 answer

Testbox 2.1 - Skip an entire directory or CFC file

We want to create a HelperUtility.cfc with common methods for our tests to use. If we put the file in /tests/lib/HelperUtility.cfc, can we tell TestBox, don't try running any tests in /tests/lib? If not, can we add something to the component tag to…
Nick Petrie
  • 5,364
  • 11
  • 41
  • 50
1
vote
1 answer

How to override default dependencies with Mockbox and Wirebox

I have a logger service that has a ScopeStorage and a LoggerServiceDAO dependency and in my unit test I need to override these to use mock objects I have created. I am using Wirebox AOP to trigger the logging events so I can not just create a mock…
Yamaha32088
  • 4,125
  • 9
  • 46
  • 97
0
votes
1 answer

How to reset header buffer in Lucee?

I am trying to write a unit test for my ColdBox application running on Lucee 4.5 using testbox for a function that includes a cfhtmlhead() call. Unfortunately, the string that would normally be appended to the section of the HTML output using…
Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132