API integration tests for Waterline adapters
Latest commit 0eb219f Nov 14, 2017 @sgress454 sgress454 1.0.0-13
Failed to load latest commit information.
features Add `archiveModelIdentity: false` where necessary to avoid errors re:… Oct 12, 2017
interfaces Fix misconfigured many-to-many association Nov 14, 2017
test Replace ambitious rollup of adapter tests with simple test that newin… Jan 5, 2017
.gitignore Vagrant configuration for testing database adapters on a VM. Jun 8, 2015
.jshintrc jshintrc and editorconfig. Mar 14, 2017
CHANGELOG.md update changelog Jun 7, 2016
Dockerfile setup docker config to run tests Feb 7, 2016
LICENSE.md initial commit May 14, 2013
README.md remove note about vagrant after replacing with docker Mar 17, 2016
docker-compose.yml remove redis from dev test suite Mar 16, 2016
package.json 1.0.0-13 Nov 14, 2017


Waterline Adapter Tests

Build Status npm version Dependency Status

A set of integration tests that can be included in your Waterline Adapter module and used to test your adapter against the current Waterline API.

Adapter Interface Specification


Write a test runner

i.e. runner.js

 * Test runner dependencies
var mocha = require('mocha');
var TestRunner = require('waterline-adapter-tests');

 * Integration Test Runner
 * Uses the `waterline-adapter-tests` module to
 * run mocha tests against the specified interfaces
 * of the currently-implemented Waterline adapter API.
new TestRunner({

	// Load the adapter module.
	adapter: require('./relative/path/to/your/adapter'),

	// Default adapter config to use.
	config: {
		schema: false

	// The set of adapter interfaces to test against.
	interfaces: ['semantic', 'queryable']

Run the tests

$ node runner.js

MIT License