Skip to main content

JSON output for the --fixtures flag

Project description

PyPI version Python versions

JSON output for the --fixtures flag


This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Features

This plugin takes the output generated when running pytest with the --fixtures flag, convert it into JSON format and stream it into a file.

Requirements

You must have Python, pip and pytest to use this plugin.

Installation

You can install “pytest-json-fixtures” via pip from PyPI:

$ pip install pytest-json-fixtures

Usage

Run the command below:

$ pytest --json-fixtures

The same result you would get with pytest --fixtures will be output in JSON in a fixtures.json file, the default file name.

If you want the output on a different file, just add it after the flag:

$ pytest --json-fixtures output.json

Contributing

Contributions are very welcome.

License

Distributed under the terms of the MIT license, “pytest-json-fixtures” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-json-fixtures-0.1.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pytest_json_fixtures-0.1.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page