diff --git a/.coveralls.yml b/.coveralls.yml
new file mode 100644
index 0000000000000000000000000000000000000000..91600595a1beacf54af2ad90ba4e67deac907a13
--- /dev/null
+++ b/.coveralls.yml
@@ -0,0 +1 @@
+service_name: travis-ci
diff --git a/Makefile b/Makefile
index e08f7bb09847483d7b146668a064a3639b9aae43..e85fb5ce974fe98b24468b63a6b091c797f3a85b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,11 @@ coverage:
 	    rm -rf coverage
 			istanbul cover ./node_modules/.bin/_mocha
 
+test: lint
+			mocha
+
 test-ci: lint
-				istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
+			istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
 
 .PHONY: lint coverage
 .SILENT: lint
diff --git a/package.json b/package.json
index f5cb9d6b4ad8ae2efacc95e20a92ca326eca3ae9..961bfd7e44a4efb64c0ce3d7f7a462f6baa88506 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
   "description": "Markdown-it plugin to specify image size",
   "main": "index.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "make test"
   },
   "repository": {
     "type": "git",