1234567891011121314151617181920212223242526 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # ----------------------------------------------------------------------------
- # Copyright © 2015- The Spyder Development Team
- #
- # Licensed under the terms of the MIT License
- # ----------------------------------------------------------------------------
- """File for running tests programmatically."""
- # Standard library imports
- import sys
- # Third party imports
- import qtpy # to ensure that Qt4 uses API v2
- import pytest
- def main():
- """Run pytest tests."""
- errno = pytest.main(['-x', 'qtpy', '-v', '-rw', '--durations=10',
- '--cov=qtpy', '--cov-report=term-missing'])
- sys.exit(errno)
- if __name__ == '__main__':
- main()
|