Преглед изворни кода

Update acceptance test script

James Allen пре 10 година
родитељ
комит
db8b4bf991
1 измењених фајлова са 9 додато и 7 уклоњено
  1. 9 7
      services/document-updater/test/acceptance/scripts/full-test.sh

+ 9 - 7
services/document-updater/test/acceptance/scripts/full-test.sh

@@ -1,20 +1,22 @@
 #! /usr/bin/env bash
 
+npm rebuild
+
 echo ">> Starting server..."
 
-grunt execute:app >> /dev/null &
-_pid="$!"
+grunt --no-color forever:app:start
 
-echo ">> Server started with pid: $_pid"
+echo ">> Server started"
 
-sleep 20
+sleep 5
 
 echo ">> Running acceptance tests..."
-grunt mochaTest:acceptance
+grunt --no-color test:acceptance
 _test_exit_code=$?
 
-echo ">> Killing server (pid: $_pid)"
-kill -1 "$_pid"
+echo ">> Killing server"
+
+grunt --no-color forever:app:stop
 
 echo ">> Done"