Skip to content

Commit

Permalink
Run the tests with hydro
Browse files Browse the repository at this point in the history
  • Loading branch information
vesln committed Jan 19, 2014
1 parent f7be83d commit d328f51
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 56 deletions.
7 changes: 1 addition & 6 deletions Makefile
@@ -1,12 +1,7 @@
REPORTER ?= dot

check: jshint test

test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--ui bdd \
test/*.test.js
@NODE_ENV=test ./node_modules/.bin/hydro

jshint:
@./node_modules/.bin/jshint .
Expand Down
49 changes: 49 additions & 0 deletions hydro.conf.js
@@ -0,0 +1,49 @@
/**
* External dependencies.
*/

var join = require('path').join;

/**
* Internal dependencies.
*/

var nixt = require('./');

/**
* Nixt template that has the fixtures dir as a CWD.
*
* @returns {Object}
* @api public
*/

function nfixt() {
return nixt().cwd(join(__dirname, 'test', 'fixtures'));
}

/**
* Test setup.
*
* @param {Object} hydro
* @api public
*/

module.exports = function(hydro) {
hydro.set({
formatter: 'hydro-dot',
globals: {
nfixt: nfixt,
},
chai: {
styles: 'should',
stack: true,
},
tests: [
'test/*.test.js'
],
plugins: [
'hydro-chai',
'hydro-bdd',
],
});
};
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -25,12 +25,14 @@
"author": "Veselin Todorov <hi@vesln.com>",
"license": "MIT",
"devDependencies": {
"mocha": "~1.13.0",
"chai": "~1.8.1",
"jshint": "~2.3.0",
"coveralls": "~2.3.0",
"jscoverage": "~0.3.8",
"mocha-lcov-reporter": "0.0.1"
"hydro": "~0.8.9",
"hydro-dot": "~1.0.5",
"hydro-chai": "~0.1.3",
"hydro-bdd": "~0.1.0"
},
"dependencies": {
"assertion-error": "~1.0.0",
Expand Down
2 changes: 0 additions & 2 deletions test/mocha.opts

This file was deleted.

46 changes: 0 additions & 46 deletions test/support/bootstrap.js

This file was deleted.

0 comments on commit d328f51

Please sign in to comment.