JSON output for the --fixtures flag
Project description
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
Built Distribution
Hashes for pytest-json-fixtures-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91af84c0f64bd0e6ba6f2f72023c5afb784ac66367d6923c480cd3b91e37eb67 |
|
MD5 | b5d662ae4678c81103f6d2c5bfcf3a88 |
|
BLAKE2b-256 | 1e2334fa58849bc86aeb0f32effd7a5787d993d39f3cfd863262f94ba1f72087 |
Hashes for pytest_json_fixtures-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfe659f876058744da3505538e9b612f8af7c01c2e0a452033503ed369adb5b2 |
|
MD5 | 5982b1ba418da72be958c7785af1dac7 |
|
BLAKE2b-256 | 058d675ce7c6f2360b1657c753f31af5337b248736a6e156c5a9e20d02a90f6c |