summaryrefslogtreecommitdiff
path: root/service/go
diff options
context:
space:
mode:
Diffstat (limited to 'service/go')
-rwxr-xr-xservice/go23
1 files changed, 21 insertions, 2 deletions
diff --git a/service/go b/service/go
index 1ae838b0..241cae46 100755
--- a/service/go
+++ b/service/go
@@ -12,9 +12,28 @@ function setupjs {
cd -
}
-if [ "$1" == 'test' ]; then
- nosetests "${@:2}" test/unit
+function runIntegrationTests {
nosetests "${@:2}" test/integration
+}
+
+function runUnitTests {
+ nosetests "${@:2}" test/unit
+}
+
+function runPep8 {
+ pep8 pixelated test --ignore=E501
+}
+
+if [ "$2" == 'test' ]; then
+ runPep8
+ runUnitTests
+ runIntegrationTests
+elif [ "$1" == 'unit' ]; then
+ runUnitTests
+elif [ "$1" == 'integration' ]; then
+ runIntegrationTests
+elif [ "$1" == 'pep8' ]; then
+ runPep8
elif [ "$1" == 'setuppy' ]; then
setuppy
elif [ "$1" == 'setupjs' ]; then