Skip to content

Set up tox to run unit and integration tests separately #3

@isedwards

Description

@isedwards

Many developers will not want to run integrations tests for database backends that they are not working with.

In tox.ini we should be able to do something like:

[testenv]
setenv =
    PYTHONPATH = {toxinidir}
deps =
    -r{toxinidir}/requirements/base.txt
commands =
    pytest tests/unit
    
[testenv:surface]
deps =
    -r{toxinidir}/requirements/provider/surface.txt
commands =
    pytest test/integration/surface

and then run tox -e surface to run the integration tests for surface.

Currently we're confused about where the database containers exist that should be used for running integration tests. The old opencdms-dev/pyopencdms contained docker files and we now also have cdm-database.

However, integration tests should run against the containers in the opencdms-test-data repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions