sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Split Python tests in unit, integration and e2e tests

Open antonpirker opened this issue 3 years ago • 1 comments

Problem Statement

So we can better track how many unit/integration/e2e tests we have. (hint: test pyramid)

Also it should be possible to only run unit/integration/e2e tests if desired.

Mark tests as unit/integration/e2e:

or with this:

Solution Brainstorm

Mark tests as unit/integration/e2e:

https://docs.pytest.org/en/6.2.x/example/markers.html

or with this:

https://pypi.org/project/pytest-integration-mark/

antonpirker avatar Jul 15 '22 10:07 antonpirker

Create an order of test types so we can fail faster.

vladanpaunovic avatar Aug 03 '22 08:08 vladanpaunovic

Tests are ok now, so I am closing this for now.

antonpirker avatar Jan 24 '23 10:01 antonpirker