tox.ini 927 B

123456789101112131415161718192021222324252627
  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 =
  21. pytest
  22. mock
  23. commands = py.test --pyargs {posargs:borg.testsuite}
  24. # fakeroot -u needs some env vars:
  25. passenv = *