tox.ini 940 B

12345678910111213141516171819202122232425
  1. # tox configuration - if you change anything here, run this to verify:
  2. # fakeroot -u tox --recreate
  3. #
  4. # Invokation examples:
  5. # fakeroot -u tox # run all tests
  6. # fakeroot -u tox -e py32 # run all tests, but only on python 3.2
  7. # fakeroot -u tox borg.testsuite.locking # only run 1 test module
  8. # fakeroot -u tox borg.testsuite.locking -- -k '"not Timer"' # exclude some tests
  9. # fakeroot -u tox borg.testsuite -- -v # verbose py.test
  10. #
  11. # Important notes:
  12. # Without fakeroot -u some tests will fail.
  13. # When using -- to give options to py.test, you MUST also give borg.testsuite[.module].
  14. [tox]
  15. envlist = py32, py33, py34
  16. [testenv]
  17. # Change dir to avoid import problem for cython code. The directory does
  18. # not really matter, should be just different from the toplevel dir.
  19. changedir = {toxworkdir}
  20. deps = -rrequirements.d/development.txt
  21. commands = py.test --pyargs {posargs:borg.testsuite}
  22. # fakeroot -u needs some env vars:
  23. passenv = *