Skip to content

stephendonner/kinto-integration-tests

 
 

Repository files navigation

License travis Dependabot

Summary

Tests for the Kinto server fall into 3 categories:

  1. unit tests - located here: https://github.com/Kinto/kinto/tree/master/tests
  2. loadtests - located here: https://github.com/Kinto/kinto-loadtests
  3. configuration check tests - located in this repo

This repo is a clearinghouse for all automated tests that don't need to reside in their own repository. They would include a variety of test types that usually fall in the middle of the test pyramid: API tests, config and URL checks, deployment tests, end-2-end tests, security tests, etc.

Preparing the tests

To run the tests, you need to have the following installed:

  • Python 3.6 or greater
  • Pipenv

Running the tests

You can run these tests using the following commands from inside the root directory for the project:

$ pipenv install
$ pipenv run pytest -m TEST_TYPE --env TEST_ENV
  • TEST_TYPE is dist for kinto-dist deployments, settings for kinto-settings deployments and webextensions for kintowe deployments
  • TEST_ENV is one of the environments listed in the manifest.ini file.

Running the tests using Docker

With Docker installed, running the tests is as simple as first building:

$ docker build -t kinto-tests .

Then, you can run the tests like so (substituting your TEST_TYPE and TEST_ENV):

$ docker run -it kinto-tests pytest -m TEST_TYPE --env=TEST_ENV

About

kinto-settings integration tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.7%
  • Dockerfile 1.3%