[Pkg-javascript-commits] [node-regex-cache] 04/04: Enable tests

Sruthi Chandran srud-guest at moszumanska.debian.org
Wed Nov 2 10:55:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

srud-guest pushed a commit to branch master
in repository node-regex-cache.

commit 03a6aa12b5f21bed18509739fbef23b37c6d3e82
Author: Sruthi <srud at disroot.org>
Date:   Wed Nov 2 15:17:50 2016 +0530

    Enable tests
---
 debian/control       | 4 ++++
 debian/rules         | 4 ++--
 debian/tests/control | 3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 195f994..c867b66 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,10 @@ Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
  , nodejs
+ , mocha
+ , node-should
+ , node-is-primitive (>= 2.0.0)
+ , node-is-equal-shallow (>= 0.1.3)
 Standards-Version: 3.9.8
 Homepage: https://github.com/jonschlinkert/regex-cache
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-regex-cache.git
diff --git a/debian/rules b/debian/rules
index de57af0..9eb6b18 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@
 
 #override_dh_auto_build:
 
-#override_dh_auto_test:
-
+override_dh_auto_test:
+	mocha -R spec
 
 
diff --git a/debian/tests/control b/debian/tests/control
index e11ed26..6e7e3d4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-regex-cache
+
+Test-Command: mocha -R spec
+Depends: @, @builddeps@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-regex-cache.git



More information about the Pkg-javascript-commits mailing list