Skip to content
Snippets Groups Projects
tox.ini 610 B
Newer Older
  • Learn to ignore specific revisions
  • [pytest]
    addopts = --doctest-modules --doctest-glob='*.rst'
              diceware tests docs README.rst
    
    
    ulif's avatar
    ulif committed
    [tox]
    
    ulif's avatar
    ulif committed
    envlist = flake8, pypy, py26, py27, py33, py34, py35, py36, coverage
    
    ulif's avatar
    ulif committed
    
    [testenv]
    
    usedevelop=True
    
    ulif's avatar
    ulif committed
    recreate=True
    
    # py.test 2.8.2 cannot handle --doctest-modules and autouse fixtures
    
    ulif's avatar
    ulif committed
    # See https://github.com/pytest-dev/pytest/issues/1057
    
    deps=pytest>=2.8.3
    
    commands=
    
    ulif's avatar
    ulif committed
      py.test
    
    ulif's avatar
    ulif committed
    
    [testenv:flake8]
    deps=flake8
    
    commands=flake8 diceware tests setup.py
    
    ulif's avatar
    ulif committed
    
    [testenv:coverage]
    deps=coverage
    commands=
      coverage erase
      coverage run setup.py test
    
      coverage report --include='diceware*,setup.py' -m --fail-under=100