tests for everything
This commit is contained in:
parent
29601afbbc
commit
b91fa9e030
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
go test -v .
|
|
@ -13,12 +13,8 @@ type
|
|||
episode*: int ## the episode number in the season
|
||||
is_movie*: bool ## does this record represent a movie?
|
||||
|
||||
when defined(isTesting):
|
||||
const
|
||||
API_ENDPOINT: string = "http://127.0.0.1:5000"
|
||||
else:
|
||||
const
|
||||
API_ENDPOINT: string = "http://ponyapi.apps.xeserv.us"
|
||||
const
|
||||
API_ENDPOINT: string = "http://ponyapi.apps.xeserv.us"
|
||||
|
||||
proc getJson(endpoint: string): json.JsonNode =
|
||||
## get the HTTP body for the API base endpoint catted with the specific endpoint
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
nim c -d:isTesting -r ponyapi
|
||||
set -e
|
||||
set -x
|
||||
|
||||
nim c -r ponyapi
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
python ./test.py
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
for client in *
|
||||
do
|
||||
if [ -d $client ]
|
||||
then
|
||||
(cd $client && ./test.sh)
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue