This instance will be upgraded to Heptapod 0.21.0rc2 on 2021-04-16 at 11:00 UTC+2 (a few minutes of down time)

run-tests.py 608 Bytes
Newer Older
1
#!/usr/bin/env python
2
"""Run a set of tests by pytest
3

4 5
To run all tests::

6
    % export HGPATH=path/to/mercurial
7 8
    % ./run-tests.py -m 'not largefiles' --doctest-modules tests
    % ./run-tests.py -m largefiles tests
9

10 11 12
For details, please see:

- `./run-tests.py --help`
13
- https://docs.pytest.org/en/stable/
14 15
- http://docs.python.org/library/unittest.html
"""
16 17 18
import sys
import pytest
import pytestcaptureexc, pytesthgenv
19 20

def main():
21 22
    sys.exit(pytest.main(plugins=[pytestcaptureexc.CaptureExcPlugin(),
                                  pytesthgenv.HgEnvPlugin()]))
23 24 25

if __name__ == '__main__':
    main()