This package provides two key test fixtures for use with the Fluid IoC Test Framework.
The CouchDB test environment provided by this package, which configures the harness provided by this package for use in Fluid IoC Tests.
Option | Type | Description |
---|---|---|
couch.port |
{Integer} |
The port on which CouchDB will be available. Defaults to 25984 . |
couch.hostname |
{String} |
The hostname on which CouchDB is running. Defaults to localhost . |
databases |
{Object} |
The databases to create and provision. See the harness docs for details. |
A test environment that provides both CouchDB and couchdb-lucene. Uses
the fluid.test.couchdb.harness.lucene
grade provided by this package.
Option | Type | Description |
---|---|---|
couch.port |
{Integer} |
The port on which CouchDB will be available. Defaults to 25984 . |
couch.hostname |
{String} |
The hostname on which CouchDB is running. Defaults to localhost . |
databases |
{Object} |
The databases to create and provision. See the harness docs for details. |
A test case holder intended for use with both of the above test environments. It:
- Starts the harness and waits for it to indicate that it's ready to respond to requests.
- Runs any configured test sequence steps.
- Shuts down the harness and waits for shutdown to complete.
The case holder provided by this package makes use of sequence grades to perform the container startup and shutdown tasks. If you want to add additional (non startup and shutdown) tasks, consult that documentation for details on composing complex tests from sequence grades.
If you only want to add startup or shutdown steps, see the "Promise Chaining Events" section of the harness documentation.
Option | Type | Description |
---|---|---|
rawModules |
{Object} |
The tests to execute. Note that your tests must be defined in rawModules rather than modules , otherwise they will not be able to trigger the automatic startup and shutdown sequence needed to use the harness safely. |
sequenceGrade |
{String} |
The sequence grade to use with any test that does not already have a sequence grade. |
A grade derived from
kettle.test.request.http
for use in retrieving and then inspecting results from the test harness.
Option | Type | Description |
---|---|---|
port |
{Integer} |
The port on which CouchDB is running. This is picked up from the test environment by default. |