Skip to content

khvn26/pytest-apireport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-apireport

Installation

Clone this repository, create a venv, install with

$ pip install -e .[test]

Testing

$ pytest tests/

Configuration

The following arguments are added to pytest:

  • --report-enabled: Toggle reporting.
  • --report-base-url: API base url, e.g. https://api.test.com.
  • --report-auth-token: API base url, e.g. ABCDEF. Used to authorize requests.

--report-enabled requires --report-base-url and --report-auth-token to be set.

Room for improvement

What could be done with more time:

  • Backoff and degradation for API client
  • Better API request error reporting
  • API client generation from OpenAPI schema
  • Stress/load testing
  • CI pipeline with coverage
  • More configuration options (pytest.ini, environment variables)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages