Projet

Général

Profil

0001-produce-a-coverage-report-when-running-tests-6934.patch

Frédéric Péters, 12 avril 2015 19:14

Télécharger (974 octets)

Voir les différences:

Subject: [PATCH] produce a coverage report when running tests (#6934)

 tox.ini | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
tox.ini
4 4
# and then run "tox" from this directory.
5 5

  
6 6
[tox]
7
envlist = django17
7
envlist = clean,django17,stats
8 8

  
9 9
[testenv:django17]
10 10
# django.contrib.auth is not tested it does not work with our templates
11 11
commands =
12 12
    ./getlasso.sh
13
    ./authentic2-ctl test authentic2
13
    coverage run --source=src/ -a ./authentic2-ctl test authentic2
14
usedevelop = True
14 15
deps = django>1.7,<1.8
16
  coverage
15 17

  
18
[testenv:clean]
19
commands = coverage erase
20
deps = coverage
16 21

  
17

  
22
[testenv:stats]
23
commands = coverage xml
24
deps = coverage
18
-