Skip to content

Commit 89bbab3

Browse files
committed
travis, enable coverage
1 parent c6dc270 commit 89bbab3

File tree

4 files changed

+32
-25
lines changed

4 files changed

+32
-25
lines changed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ node_js:
1010
cache:
1111
directories:
1212
node_modules
13+
14+
script: ./covertest

covertest

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

3+
set -e
34
mkdir -p coverage/first
45

56
echo "Running fakeredis test suite ..."
@@ -8,7 +9,7 @@ mv 'coverage/lcov.info' 'coverage/first.info'
89

910
# node_redis tests subset
1011
echo "Running the compatible subset of the node_redis test suite ..."
11-
istanbul cover redis.test.js --lcovonly
12+
istanbul cover redis.test.js --lcovonly
1213

1314
# merging
1415
lcov-result-merger 'coverage/*.info' 'coverage/merged.lcov'

package.json

+28-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
1-
{ "name": "fakeredis",
2-
"version": "1.0.1",
3-
"description": "Fake redis for testing, works as a drop-in replacement for node_redis",
4-
"keywords": [ "test", "spec", "fake", "redis", "simulated", "implementation", "client" ],
5-
"author": "Hristo Dachev <[email protected]>",
6-
"main": "./main.js",
7-
"dependencies": {
8-
"redis": "^2.4.2"
9-
},
10-
"license": "MIT",
11-
"bugs": {
12-
"mail": "[email protected]",
13-
"url": "http://github.com/hdachev/fakeredis/issues"
14-
},
15-
"repository": {
16-
"type": "git",
17-
"url": "git://github.com/hdachev/fakeredis.git"
18-
},
1+
{
2+
"name": "fakeredis",
3+
"version": "1.0.1",
4+
"description": "Fake redis for testing, works as a drop-in replacement for node_redis",
5+
"keywords": [
6+
"test",
7+
"spec",
8+
"fake",
9+
"redis",
10+
"simulated",
11+
"implementation",
12+
"client"
13+
],
14+
"author": "Hristo Dachev <[email protected]>",
15+
"main": "./main.js",
16+
"dependencies": {
17+
"redis": "^2.4.2"
18+
},
19+
"license": "MIT",
20+
"bugs": {
21+
"mail": "[email protected]",
22+
"url": "http://github.com/hdachev/fakeredis/issues"
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "git://github.com/hdachev/fakeredis.git"
27+
},
1928
"scripts": {
2029
"test": "./runtest",
2130
"coverage": "./covertest"
2231
},
2332
"devDependencies": {
2433
"coveralls": "^2.11.6",
34+
"istanbul": "^0.4.2",
2535
"lcov-result-merger": "^1.0.2"
2636
}
2737
}

runtest

-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
#!/bin/sh
22

3-
# fail fast
43
set -e
54

6-
# fakeredis tests
7-
echo ""
85
echo "Running fakeredis test suite ..."
9-
echo ""
106
node test
117

128
# node_redis tests subset
13-
echo ""
149
echo "Running the compatible subset of the node_redis test suite ..."
15-
echo ""
1610
node redis.test

0 commit comments

Comments
 (0)