runtests.py 712 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # ----------------------------------------------------------------------------
  4. # Copyright © 2015- The Spyder Development Team
  5. #
  6. # Licensed under the terms of the MIT License
  7. # ----------------------------------------------------------------------------
  8. """File for running tests programmatically."""
  9. # Standard library imports
  10. import sys
  11. # Third party imports
  12. import qtpy # to ensure that Qt4 uses API v2
  13. import pytest
  14. def main():
  15. """Run pytest tests."""
  16. errno = pytest.main(['-x', 'qtpy', '-v', '-rw', '--durations=10',
  17. '--cov=qtpy', '--cov-report=term-missing'])
  18. sys.exit(errno)
  19. if __name__ == '__main__':
  20. main()