dremdem / pytest-monitor-backend

Flask-MongoDB backend for pytest-monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytest-monitor-backend

Installation

Put MongoDB credentials to ./env/mongo.env

Example:

MONGO_HOST=pymon_mongo_local
MONGO_PORT=27017
MONGO_INITDB_DATABASE=local_db
MONGO_INITDB_ROOT_PASSWORD=pass
MONGO_INITDB_ROOT_USERNAME=user

Build container

docker build -t pymon_backend .

Run container

docker-compose up -d

Usage

install pytest-monitor

pip install pytest-monitor

Run test with pytest-monitor

pytest --remote-server http://server_name:5000 test1.py

Get info from MongoDB

use pymon

db.context.find()
db.session.find()
db.metrics.find()

Links

About

Flask-MongoDB backend for pytest-monitor


Languages

Language:Python 96.5%Language:Dockerfile 2.3%Language:Shell 1.2%