Skip to content

A starter template for conducting an API test with Tavern

License

MIT, CC-BY-4.0 licenses found

Licenses found

MIT
LICENSE
CC-BY-4.0
LICENSE-docs
Notifications You must be signed in to change notification settings

LFX-Engineering/tavern-test-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tavern-test-template

This repository is a starter template repository for conducting an API test with Tavern.

Python Setup

# Create a virtual env (assumes python3)
virtualenv .venv

# Load the virtual environment
.venv/bin/activate

# Install the requirements
pip3 install -r requirements.txt

Write Tests!

  1. review the tests/ folder.
  2. for each YAML file, open and review the instructions
  3. once done editing the Tavern tests, run the tests to see if they all pass

Running

To run the tests:

py.test tests/*.yaml -v --alluredir=allure_reports

References

  1. Tavern Documentation
  2. PyTest

License

Copyright The Linux Foundation and each contributor to LFX.

This project’s source code is licensed under the MIT License. A copy of the license is available in LICENSE.

This project’s documentation is licensed under the Creative Commons Attribution 4.0 International License (CC-BY-4.0). A copy of the license is available in LICENSE-docs.

About

A starter template for conducting an API test with Tavern

Resources

License

MIT, CC-BY-4.0 licenses found

Licenses found

MIT
LICENSE
CC-BY-4.0
LICENSE-docs

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published