You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_tests.sh 431B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. # For running all tests
  3. if [ $# -ne 1 ]
  4. then
  5. printf "Please specify a project folder\n"
  6. exit 1
  7. fi
  8. PROJECT_FOLDER=`basename $1`
  9. MANAGE_COMMAND=$PROJECT_FOLDER/manage.py
  10. if [ ! -f $MANAGE_COMMAND ]
  11. then
  12. printf "$MANAGE_COMMAND cannot be found\n"
  13. fi
  14. echo "Running all tests in $PROJECT_FOLDER"
  15. time $MANAGE_COMMAND test oscar --settings=test_settings -v 1 --failfast | \
  16. grep -v "^\(Installing\|Creating\)"