#!/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()