Unit tests can now be run with 'make test'
authorRyan Campbell <campbellr@gmail.com>
Mon, 3 Jan 2011 20:40:07 +0000 (13:40 -0700)
committerRyan Campbell <campbellr@gmail.com>
Mon, 3 Jan 2011 20:40:07 +0000 (13:40 -0700)
package/Makefile
package/src/tests/README

index 864314e..7bd7f61 100644 (file)
@@ -55,3 +55,6 @@ package:
        sed -i 's:mevemon (.*):mevemon (${MAJOR_VER}.${MINOR_VER}-${PKG_VER}):g' debian/changelog       
        dpkg-buildpackage -rfakeroot -uc -us
 
+test:
+       python -m discover -s src/tests/ -t src/
+
index 8e7ec13..87c648a 100644 (file)
@@ -3,3 +3,6 @@ HOW TO RUN UNIT TESTS:
 From 'mevemon/package/src/' run the following command:
 
 $ python -m discover -s tests/
+
+Alternatively, you can just run 'make test' from the 'package' directory.
+