Skip to content
Browse files

Make tests accessible

  • Loading branch information...
1 parent 8a03a00 commit e0a245366e19999b6b10308b3f616f83b8065ca3 @chriso committed
View
13 Makefile
@@ -1,7 +1,14 @@
+dependencies:
+ @npm install -d
+
+deps: dependencies
+
test:
- @expresso -I lib --growl test/*.test.js
+ @node_modules/expresso/bin/expresso -I lib --growl test/*.test.js
+
+check: test
test-cov:
- @expresso -I lib --cov test/*.test.js
+ @node_modules/expresso/bin/expresso -I lib --cov test/*.test.js
-.PHONY: test test-cov
+.PHONY: test test-cov dependencies
View
10 package.json
@@ -1,9 +1,12 @@
{ "name" : "redback",
"description" : "A high-level Redis library",
- "version" : "0.2.8",
+ "version" : "0.2.9-1",
"homepage" : "https://github.com/chriso/redback",
"author" : "Chris O'Hara <cohara87@gmail.com>",
"main" : "index",
+ "scripts": {
+ "test": "make test"
+ },
"bugs": {
"mail": "cohara87@gmail.com",
"url": "http://github.com/chriso/redback/issues"
@@ -17,10 +20,13 @@
"hiredis": ">= 0.1.9",
"redis": ">= 0.6.0"
},
+ "devDependencies": {
+ "expresso": "*",
+ "stem": "*"
+ },
"contributors": [
{ "name": "Sreekanth", "github": "https://github.com/sreeix", "email": "sreeix@gmail.com" }
],
- "preferGlobal": true,
"licenses": [{
"type": "MIT",
"url": "http://github.com/chriso/redback/raw/master/LICENSE"
View
2 test/bitfield.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/bloomfilter.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/cache.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/cappedlist.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/channel.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
client2 = require('redis').createClient(),
assert = require('assert');
View
2 test/crc32.test.js
@@ -1,4 +1,4 @@
-var crc32 = require('Utils').crc32,
+var crc32 = require('../lib/Utils').crc32,
assert = require('assert');
module.exports = {
View
2 test/densityset.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/fulltext.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/hash.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/keypair.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/list.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/namespace.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback'),
+var redback = require('../'),
assert = require('assert');
module.exports = {
View
2 test/queue.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/set.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/socialgraph.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/sortedset.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback').createClient(),
+var redback = require('../').createClient(),
assert = require('assert');
//Flush the DB and close the Redis connection after 500ms
View
2 test/structure.test.js
@@ -1,4 +1,4 @@
-var redback = require('redback'),
+var redback = require('../'),
assert = require('assert'),
Structure = redback.Structure,
Hash = redback.Hash,

0 comments on commit e0a2453

Please sign in to comment.
Something went wrong with that request. Please try again.