Skip to content

Add support to run different subsets of (integration) tests #515

@ckunki

Description

@ckunki

Currently, the PTB offers two nox sessions for running either the unit or the integration tests_

  • nox -s test:unit
  • nox -s test:integration

Implementation

  • Nox task test:integration runs _integration_tests()
  • which calls _test_command(config.root / "test" / "integration", config, context)
  • which returns coverage … pytest … context["fwd-args"]

Details: Background & Context, References, Examples

  • See the link in private field IntRef for more details regarding the sample project AAF
  • Besides the AAF also ITDE and NC have similar needs

Proposals

  • Use pytest markers @pytest.mark.xyz to separate test cases
  • Add nox session test:dir expecting a directory as parameter

Task(s)

TBD

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProduct feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions