Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Logs to make it easier to see whats going on
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Jan 9, 2014
1 parent 848cfd7 commit 35c0ea0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Boilerplate adapter for Sails.js",
"main": "index.js",
"scripts": {
"test": "node test/integration/runner"
"test": "node test/integration/runner -R spec -b"
},
"repository": {
"type": "git",
Expand All @@ -27,13 +27,15 @@
"devDependencies": {
"waterline-adapter-tests": "git://github.com/balderdashy/waterline-adapter-tests.git#associations",
"mocha": "*",
"root-require": "~0.2.0"
"root-require": "~0.2.0",
"captains-log": "~0.10.6"
},
"sailsAdapter": {
"sailsVersion": "~0.10.0",
"implements": [
"semantic",
"queryable"
"queryable",
"associations"
]
}
}
18 changes: 17 additions & 1 deletion test/integration/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
*/
var util = require('util');
var mocha = require('mocha');
var log = new (require('captains-log'))();


var TestRunner = require('waterline-adapter-tests');
var Adapter = require('../../');
var interfaces;



// Grab targeted interfaces from this adapter's `package.json` file:
var package = {};
var interfaces = [];
try {
package = require('root-require')('package.json');
interfaces = package['sailsAdapter'].implements;
Expand All @@ -26,6 +28,20 @@ catch (e) {
}





log.info('Testing `' + package.name + '`, a Sails adapter.');
log.info('Running `waterline-adapter-tests` against ' + interfaces.length + ' interfaces...');
log.info('( ' + interfaces.join(', ') + ' )');
console.log();
log('Latest draft of Waterline adapter interface spec:');
log('https://github.com/balderdashy/sails-docs/blob/master/adapter-specification.md');
console.log();




/**
* Integration Test Runner
*
Expand Down

0 comments on commit 35c0ea0

Please sign in to comment.