Skip to content

Commit

Permalink
install coverage in buildout and switch to Python doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Aug 30, 2016
1 parent 4d5c6a9 commit 577c00c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -9,3 +9,4 @@ parts
develop-eggs
htmlcov
.coverage
.cache
8 changes: 8 additions & 0 deletions buildout.cfg
Expand Up @@ -2,3 +2,11 @@
extends = https://raw.github.com/collective/buildout.plonetest/master/test-5.0.x.cfg
package-name = plone.formwidget.multifile
package-extras = [tests]
parts +=
coverage

[coverage]
recipe = zc.recipe.egg
eggs =
${test:eggs}
coverage
3 changes: 1 addition & 2 deletions plone/formwidget/multifile/tests/test_doctests.py
@@ -1,12 +1,11 @@
import doctest
import unittest
import zope.app.testing.placelesssetup
import zope.testing.doctest


def test_suite():
return unittest.TestSuite((
zope.testing.doctest.DocFileSuite('../README.txt',
doctest.DocFileSuite('../README.txt',
setUp=zope.app.testing.placelesssetup.setUp,
tearDown=zope.app.testing.placelesssetup.tearDown,
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
Expand Down

0 comments on commit 577c00c

Please sign in to comment.