-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-plone-base.cfg
43 lines (36 loc) · 1005 Bytes
/
test-plone-base.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
[buildout]
eggs-directory = /Users/sbo/.buildout/eggs
download-cache = /Users/sbo/.buildout/downloads
extends-cache = /Users/sbo/.buildout/extends
package-name = plonetheme.drupal
package-extras = [test]
parts +=
coverage
report
report-xml
omelette
[coverage]
# generate .coverage file
# use --source to select which eggs to include (reference to a directory)
recipe = zc.recipe.egg
eggs = coverage
initialization =
include = '--source=${buildout:directory}/src/plonetheme/drupal'
sys.argv = sys.argv[:] + ['run', include, 'bin/test', '--all']
[report]
# generate an HTML file in the directory htmlcov
recipe = zc.recipe.egg
eggs = coverage
scripts = coverage=report
initialization =
sys.argv = sys.argv[:] + ['html', '-i']
[report-xml]
# generate coverage.xml file
recipe = zc.recipe.egg
eggs = coverage
scripts = coverage=report-xml
initialization =
sys.argv = sys.argv[:] + ['xml', '-i']
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}