Skip to content

Commit

Permalink
Merge pull request #13 from ProjetSigma/add-coverage
Browse files Browse the repository at this point in the history
Adds coverage report during tests
  • Loading branch information
tizot committed Jan 26, 2016
2 parents 5f1bbe8 + 0934ca7 commit 14185c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[report]
omit = */migrations/*
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Sigma - Backend

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ProjetSigma/backend/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ProjetSigma/backend/?branch=master)
[![Circle CI](https://circleci.com/gh/ProjetSigma/backend.svg?style=svg)](https://circleci.com/gh/ProjetSigma/backend)
[![Coverage Status](https://coveralls.io/repos/ProjetSigma/backend/badge.svg?branch=add-coverage&service=github)](https://coveralls.io/github/ProjetSigma/backend?branch=add-coverage)

## Licence
<a href="https://github.com/ProjetSigma/backend/blob/master/LICENSE.md">
Expand Down
6 changes: 5 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
machine:
python:
version: 3.4.1

dependencies:
pre:
- pip install -r requirements/prod.txt
Expand All @@ -10,3 +9,8 @@ dependencies:
checkout:
post:
- cp ./sigma/settings_default.py ./sigma/settings.py
test:
pre:
- pip install python-coveralls -U
post:
- coveralls
2 changes: 1 addition & 1 deletion sigma/settings_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@

# Test (django_nose conf)
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = ['--nocapture', '--nologcapture',] # To display debug during testing
NOSE_ARGS = ['--nocapture', '--nologcapture', '--with-coverage', '--cover-package=sigma,sigma_core', ] # To display debug during testing

AUTH_USER_MODEL = 'sigma_core.User'
1 change: 1 addition & 0 deletions sigma_core/views/user.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import random
import string

Expand Down

0 comments on commit 14185c0

Please sign in to comment.