tests for everything

This commit is contained in:
Christine Dodrill 2015-08-12 18:22:56 -07:00
parent 29601afbbc
commit b91fa9e030
5 changed files with 30 additions and 7 deletions

6
client/go/test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
set -x
go test -v .

View File

@ -13,11 +13,7 @@ type
episode*: int ## the episode number in the season episode*: int ## the episode number in the season
is_movie*: bool ## does this record represent a movie? is_movie*: bool ## does this record represent a movie?
when defined(isTesting): const
const
API_ENDPOINT: string = "http://127.0.0.1:5000"
else:
const
API_ENDPOINT: string = "http://ponyapi.apps.xeserv.us" API_ENDPOINT: string = "http://ponyapi.apps.xeserv.us"
proc getJson(endpoint: string): json.JsonNode = proc getJson(endpoint: string): json.JsonNode =

View File

@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
nim c -d:isTesting -r ponyapi set -e
set -x
nim c -r ponyapi

6
client/python/test.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
set -x
python ./test.py

12
client/test.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
set -x
for client in *
do
if [ -d $client ]
then
(cd $client && ./test.sh)
fi
done