Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
bcb71588
Commit
bcb71588
authored
Dec 23, 2016
by
Daniel W Bond
Browse files
read through the coverage package docs; let's see if this works
parent
e68f0f25
Pipeline
#673
passed with stage
in 2 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bcb71588
...
@@ -32,7 +32,6 @@ test_Roomlist:
...
@@ -32,7 +32,6 @@ test_Roomlist:
-
python manage.py shell < housing/housing_obj_creator.py
-
python manage.py shell < housing/housing_obj_creator.py
-
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', 'root@srct.gmu.edu', 'root') " | python ./manage.py shell
-
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', 'root@srct.gmu.edu', 'root') " | python ./manage.py shell
script
:
script
:
-
cd ..
-
coverage run --source='.' --omit=*migrations/* ./manage.py test
-
coverage run --source=roomlist ./roomlist/manage.py test
-
coverage html -i
-
coverage html
-
grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
-
grep pc_cov htmlcov/index.html | egrep -o "[0-9]+\%" | awk '{ print "covered " $1;}'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment