> For the complete documentation index, see [llms.txt](https://testbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://testbox.ortusbooks.com/master-2/getting-started/overview.md).

# Overview

TestBox is a next generation testing framework for ColdFusion (CFML) that is based on BDD (Behavior Driven Development) for providing a clean obvious syntax for writing tests. It contains not only a testing framework, runner, assertions, mocking/stubbing and expectations library. It also supports xUnit style of testing with MXUnit compatibilities.

{% hint style="danger" %}
**Important** TestBox is a standalone testing package and is meant to be used with any ColdFusion (CFML) application, framework or library. IT IS NOT ONLY FOR COLDBOX APPLICATIONS.
{% endhint %}

## Useful Resources

* [Approaches to Mocking](http://www.onjava.com/pub/a/onjava/2004/02/11/mocks.html)
* [Wikipedia Mock Objects](http://en.wikipedia.org/wiki/Mock_object)
* [Using mock objects for complex unit tests IBM developerWorks](http://www-128.ibm.com/developerworks/rational/library/oct06/pollice/index.html)
* [Unit testing with mock objects IBM developerWorks](http://www.ibm.com/developerworks/library/j-mocktest.html)
* [Emergent Design by Scott Bain](http://www.netobjectives.com/emergent-design-evolutionary-nature-professional-software-development)
* [Mocks Aren't Stubs by Martin Fowler](http://martinfowler.com/articles/mocksArentStubs.html)

## Ref Cards

Our RefCards will get you up and running in no time.

## BDD RefCard

[![TestBox BDD Refcard](https://3468028133-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA-UVvpHGvcri7lG2ed%2F-LA-UeeLRqOWbuV1o1QC%2F-LA-UpLp5NAhUxWtDc_W%2Ftestbox-bdd-refcard-150.png?generation=1523647994957859\&alt=media)](https://github.com/ColdBox/cbox-refcards/raw/master/TestBox%20BDD%20Primer/TestBox-BDD-Refcard.pdf)

## xUnit RefCard

[![TestBox xUnit Refcard](https://3468028133-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LA-UVvpHGvcri7lG2ed%2F-LA-UeeLRqOWbuV1o1QC%2F-LA-UkYczNfarRZTQQON%2Ftestbox-xunit-refcard-150.png?generation=1523647978295311\&alt=media)](https://github.com/ColdBox/cbox-refcards/raw/master/TestBox%20xUnit%20Primer/TestBox-xUnit-Refcard.pdf)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://testbox.ortusbooks.com/master-2/getting-started/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
