Skip to content

Commit

Permalink
drop test db after completion
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Nov 19, 2011
1 parent 208bde6 commit bcdd033
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -5,6 +5,7 @@ test:
@NODE_ENV=test ./support/expresso/bin/expresso \
$(TESTFLAGS) \
$(TESTS)
@node test/dropdb.js

test-cov:
@TESTFLAGS=--cov $(MAKE) test
Expand Down
5 changes: 5 additions & 0 deletions test/dropdb.js
@@ -0,0 +1,5 @@
var start = require('./common')
var db = start();
db.db.dropDatabase(function () {
process.exit();
});

0 comments on commit bcdd033

Please sign in to comment.