Skip to content

Commit

Permalink
Debugging coverage run, is the .coverage file there?
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed Apr 4, 2018
1 parent 0e6453e commit 078778e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/travis_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ coverage run backend/route.py --port=4000 --develop 1>http_log.txt 2>&1 &
BACKEND_PID=$!

function exit_handler() {
kill -9 $BACKEND_PID
kill -9 $BACKEND_PID || true

echo "THE HTTP LOG WAS:"
cat http_log.txt
Expand All @@ -54,17 +54,18 @@ sleep 2 # Lets wait a little bit so the server has started
python backend/test.py -v

kill -2 $BACKEND_PID
sleep 2
sleep 5
if kill -0 $BACKEND_PID 2>/dev/null; then
echo "STILL RUNNING!";
sleep 2
kill -15 $BACKEND_PID
sleep 2
sleep 3
fi

if kill -0 $BACKEND_PID 2>/dev/null; then
echo "STILL RUNNING!???";
fi

ls -la

coveralls
coverage report

0 comments on commit 078778e

Please sign in to comment.