-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildout.cfg
53 lines (46 loc) · 1.3 KB
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[buildout]
develop = .
parts = test coverage coverage-test coverage2-test coverage-report python tags
newest = false
include-site-packages = false
unzip = true
[python]
recipe = zc.recipe.egg
eggs = cipher.longrequest [test]
interpreter = python
[tags]
recipe = z3c.recipe.tag
eggs = ${python:eggs}
[test]
recipe = zc.recipe.testrunner
eggs = ${python:eggs}
defaults = ['--tests-pattern', '^f?tests$$', '-v']
[coverage]
recipe = zc.recipe.egg
eggs = coverage
[coverage-test]
recipe = zc.recipe.testrunner
eggs = ${python:eggs}
coverage
defaults = ['--tests-pattern', '^f?tests$$', '-v']
initialization =
# haaaaack because zc.testrunner 1.4.0 produces an _insane_ bin/test
# that cannot be run with bin/coverage run bin/test, or even
# bin/python bin/test
import coverage, atexit
c = coverage.coverage(data_file='${buildout:directory}/.coverage',
source=['cipher.longrequest'])
def _when_done(c=c): c.stop(), c.save()
atexit.register(_when_done)
c.start()
[coverage2-test]
recipe = zc.recipe.testrunner
eggs = ${python:eggs}
defaults = ['--coverage', '${buildout:directory}/coverage']
[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coveragereport=coverage-report
arguments =
('${buildout:directory}/coverage',
'${buildout:directory}/coverage/report')