Metadata-Version: 1.1
Name: pytest-ghostinspector
Version: 0.1.0
Summary: For finding/executing Ghost Inspector tests
Home-page: https://github.com/harvard-dce/pytest-ghostinspector
Author: Jay Luker
Author-email: jay_luker@harvard.edu
License: MIT
Description: pytest-ghostinspector
        ===================================
        
        .. image:: https://travis-ci.org/harvard-dce/pytest-ghostinspector.svg?branch=master
            :target: https://travis-ci.org/harvard-dce/pytest-ghostinspector
            :alt: See Build Status on Travis CI
        
        For discovering & executing Ghost Inspector tests
        
        
        Features
        --------
        
        pytest-ghostinspector is a plugin that leverages the pytest
        framework and test runner to execute Ghost Inspector tests
        via the REST API. Instead of standard test code, you create
        your functional web application tests via the Ghost Inspector
        UI and/or test recorder, then specify the suites or individual
        tests to execute using a YAML config file or command-line
        arguments. The API key and any necessary test variables are
        also specified either as command-line arguments or in a
        `pytest.ini` file.
        
        Requirements
        ------------
        
        * python >= 2.7
        
        
        Installation
        ------------
        
        The usual...
        
            $ pip install pytest-ghostinspector
        
        
        Usage
        -----
        
        This plugin adds several command-line arguments to py.test::
        
            ghostinspector:
              --gi_key=GI_KEY       Set the value for the Ghost Inspector API key
              --gi_start_url=GI_START_URL
                                    Override the starting url value for the Ghost
                                    Inspector tests
              --gi_suite=GI_SUITE   Id of a Ghost Inspector suite to execute
              --gi_test=GI_TEST     Id of a Ghost Inspector test to execute
              --gi_param=GI_PARAM   Querystring param (repeatable) to include in the API
                                    execute request. Example: "--gi_param foo=bar"
        
        
        ------
        
        Once installed the simplest way to execute your Ghost Inspector tests is via
        command-line options to py.test::
        
            $ py.test --gi_key=hjkl1234 --gi_test=asdf0987
        
        Output should look something like::
        
            ============================== test session starts =============================
            platform linux2 -- Python 2.7.10, pytest-2.8.3, py-1.4.30, pluggy-0.3.1
            rootdir: /path/to/cwd, inifile:
            plugins: ghostinspector-0.1.0
            collected 1 items
        
            . .
        
            ============================ 1 passed in 26.34 seconds =========================
        
        
        ------
        
        To avoid having to type common options, like `--gi_key`, include them in a
        `pytest.ini` file with `addopts`::
        
            [pytest]
            ...
            addopts =
                --gi_key=abcd1234
                --gi_param foo=bar
        
        ------
        
        If you have a large enough collections of tests or suites you can create a
        YAML test file containing the ids and the plugin will collect and
        execute them::
        
            # gi_test_my_tests.yml
        
            suites:
              - id: abcd1234
              - id: fdsa9876
        
            tests:
              - id: qwer4567
        
        Then point py.test at the YAML file::
        
            $ py.test gi_tests/gi_test_my_tests.yml
        
        
        Contributing
        ------------
        Contributions are very welcome. Tests can be run with `tox`_.
        
        License
        -------
        
        Distributed under the terms of the `MIT`_ license, "pytest-ghostinspector" is free and open source software.
        
        
        Issues
        ------
        
        If you encounter any problems, please `file an issue`_ along with a detailed description.
        
        
        ----
        
        This `Pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.
        
        Copyright
        ---------
        2015 President and Fellows of Harvard College
        
Keywords: pytest,py.test,ghostinspector
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: Testing
