https://github.com/jlane9/pytest-statsd
pytest plugin for reporting results to statsd (graphite)
https://github.com/jlane9/pytest-statsd
graphite pytest pytest-plugin statsd
Last synced: 8 months ago
JSON representation
pytest plugin for reporting results to statsd (graphite)
- Host: GitHub
- URL: https://github.com/jlane9/pytest-statsd
- Owner: jlane9
- License: mit
- Created: 2017-05-10T02:13:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T17:08:07.000Z (over 1 year ago)
- Last Synced: 2025-01-31T21:52:50.158Z (over 1 year ago)
- Topics: graphite, pytest, pytest-plugin, statsd
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
pytest-statsd
=============
[](https://travis-ci.org/jlane9/pytest-statsd)
[](https://badge.fury.io/py/pytest-statsd)
[](https://pypi.python.org/pypi/pytest-statsd)
[](https://pypi.python.org/pypi/pytest-statsd)
[](https://pypi.python.org/pypi/pytest-statsd)
[](https://requires.io/github/jlane9/pytest-statsd/requirements/?branch=master)
[](http://pytest-statsd.readthedocs.io/en/latest/?badge=latest)
[](https://codeclimate.com/github/jlane9/pytest-statsd/maintainability)
Installation
------------
Install through pip:
```bash
pip install pytest-statsd
```
Install from source:
```bash
cd /path/to/source/pytest-statsd
python setup.py install
```
Example
-------
To simply run using default the configuration, use:
```bash
pytest --stats-d tests/
```
If there is a need to configure where to sent results to other than localhost:8125, use:
```bash
pytest --stats-d --stats-host http://myserver.com --stats-port 3000 tests/
```
You can also prefix your results if you plan on having multiple projects sending results to the same server:
```bash
pytest --stats-d --stats-prefix myproject test/
```