1.0.1 • Published 6 years ago

waterline-adapter-tests v1.0.1

Weekly downloads
112
License
MIT
Repository
github
Last release
6 years ago

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

Usage

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

See LICENSE.md.

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-13

6 years ago

1.0.0-12

7 years ago

1.0.0-11

7 years ago

1.0.0-10

7 years ago

1.0.0-9

7 years ago

1.0.0-8

7 years ago

1.0.0-7

7 years ago

1.0.0-6

7 years ago

1.0.0-5

7 years ago

1.0.0-4

7 years ago

0.11.2

7 years ago

1.0.0-3

7 years ago

1.0.0-2

7 years ago

1.0.0-1

7 years ago

0.12.1

8 years ago

0.12.0

8 years ago

0.11.1

8 years ago

0.11.0

8 years ago

0.10.19

8 years ago

0.10.18

8 years ago

0.10.17

8 years ago

0.10.16

8 years ago

0.10.15

8 years ago

0.10.14

9 years ago

0.10.13

9 years ago

0.10.12

9 years ago

0.10.11

9 years ago

0.10.10

9 years ago

0.10.9

9 years ago

0.10.8

9 years ago

0.10.7

9 years ago

0.10.6

9 years ago

0.10.5

9 years ago

0.10.4

10 years ago

0.10.3

10 years ago

0.10.2

10 years ago

0.10.1

10 years ago

0.10.0

10 years ago

0.9.4

10 years ago

0.9.3

11 years ago

0.9.2

11 years ago

0.9.1

11 years ago

0.9.0

11 years ago