Running the test suite
The test suite can be run in two ways:
- From the command line, by running
- Through a browser, by running
Both methods require that you have CommandBox installed and in your path.
Both methods also require that you have an empty test database accessible to the server running the code. The easiest way to do that is to have a local MySQL database and user created with the following credentials:
Host : localhost Port : 3306 DB Name : preside_test User : root Password : (empty)
An alternative database can be used by setting the following environment variables that should be made available to the running test suite:
PRESIDETEST_DB_HOST PRESIDETEST_DB_PORT PRESIDETEST_DB_NAME PRESIDETEST_DB_USER PRESIDETEST_DB_PASSWORD
On my well spec'd laptop, the full test suite takes around five minutes to complete. Expect for the suite to take a long time.
Use the Web browser based test suite runner to be able to pick and choose which tests to run, this will make a huge difference when focusing on a particular area of development.