GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

pytest.py 479 Bytes
Newer Older
Alex Gaynor's avatar
Alex Gaynor committed
1
#!/usr/bin/env python
2 3 4 5 6 7 8
"""
unit and functional testing with Python.
"""
__all__ = ['main']

from _pytest.core import main, UsageError, _preloadplugins
from _pytest import core as cmdline
9
from _pytest import __version__
10 11

if __name__ == '__main__': # if run as a script or by 'python -m pytest'
12 13 14
    #XXX: sync to upstream later
    import pytest_cov
    raise SystemExit(main(plugins=[pytest_cov]))
15 16
else:
    _preloadplugins() # to populate pytest.* namespace so help(pytest) works