Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v1.1.2
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.786 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env bash

# TODO: How to tell setup.py to only run some tests.

case $1 in
    userena ) echo -e "\033[1mRunning tests for userena.\033[0m"
                cmd="coverage run setup.py test"
                report_cmd="coverage report -m userena/*.py userena/management/commands/*.py"
                ;;
    umessages ) echo -e "\033[1mRunning tests for umessages.\033[0m"
                cmd="coverage run setup.py test"
                report_cmd="coverage report -m userena/contrib/umessages/*.py"
                ;;
    * ) echo -e "\033[1mRunning all tests.\033[0m"
                cmd="coverage run setup.py test"
                report_cmd="coverage report -m userena/*.py userena/management/commands/*py userena/contrib/umessages/*.py"
esac

$cmd
$report_cmd
Something went wrong with that request. Please try again.