Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
Repackaging all tests to utilize mocha
Removing unneeded development dependencies
  • Loading branch information
bentaber committed Mar 27, 2013
1 parent 4899c2b commit 86508c9
Show file tree
Hide file tree
Showing 19 changed files with 316 additions and 533 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*.dirty
dirty.db
node_modules
node_modules
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test:
@find test/{simple,system}/test-*.js | xargs -n 1 -t node
npm test

benchmark-v8:
@find benchmark/v8/*.js | xargs -n 1 -t node
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
"name": "dirty",
"description": "A tiny & fast key value store with append-only disk log. Ideal for apps with < 1 million records.",
"version": "0.9.7",
"dependencies": {
},
"dependencies": {},
"main": "./lib/dirty",
"devDependencies": {
"gently": ">=0.8.0",
"mocha": "~1.8.2",
"async": "~0.2.6",
"underscore": "~1.4.4"
"rimraf": "~2.1.4"
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
"test": "./node_modules/mocha/bin/mocha test/test-*.js -R list"
},
"engines": {
"node": "*"
Expand Down
17 changes: 0 additions & 17 deletions test/common.js

This file was deleted.

14 changes: 14 additions & 0 deletions test/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var path = require('path'),
fs = require('fs'),
rimraf = require('rimraf');

var TMP_PATH = path.join(__dirname, 'tmp'),
LIB_DIRTY = path.join(__dirname, '../lib/dirty');

rimraf.sync(TMP_PATH);
fs.mkdirSync(TMP_PATH);

module.exports = {
TMP_PATH: TMP_PATH,
LIB_DIRTY: LIB_DIRTY
};
13 changes: 0 additions & 13 deletions test/nostore/test-load-event.js

This file was deleted.

13 changes: 0 additions & 13 deletions test/nostore/test-set-callback.js

This file was deleted.

Loading

0 comments on commit 86508c9

Please sign in to comment.