File: run_tests.py

package info (click to toggle)
xdoctest 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: python: 10,747; sh: 815; cpp: 33; makefile: 19
file content (17 lines) | stat: -rwxr-xr-x 469 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
if __name__ == '__main__':
    import pytest
    import sys
    package_name = 'xdoctest'
    mod_dpath = 'src/xdoctest'
    test_dpath = 'tests'
    pytest_args = [
        '--cov-config', 'pyproject.toml',
        '--cov-report', 'html',
        '--cov-report', 'term',
        '--xdoctest',
        '--cov=' + package_name,
        mod_dpath, test_dpath
    ]
    pytest_args = pytest_args + sys.argv[1:]
    sys.exit(pytest.main(pytest_args))