Skip to content

Improvement: Integrate pytest #159

Closed

Description

@MaximilianSoerenPollak

Why is it needed?

Currently we have no way of executing python defined tests via bazel.
There are tests already inside sphinx_extensions, but we have no way of running these tests.

What should it do?

The tooling should be able allow for test to be run via 'pytests'. It should be possible to be called from a bazel BUILD files.
There also should be a way to test specific sub-folders / languages etc.

Tasks:

  • Integrate Pytest into bazel
  • Ensure current tests can be executed correctly
  • Provide simple ways to call a subset of tests (for example, call all tests for python)
  • Document how to use implementation for own developments as well as executing it
  • integrate into IDEs like pytest normally does: https://pytest-with-eric.com/introduction/how-to-run-pytest-in-vscode/

Activity

  1. ltekieli commented on Jan 15, 2025

    @ltekieli
    Member

    This is a good topic for setting up a separate repo that is included in the bazel registry.

  2. AlexanderLanin commented on Jan 15, 2025

    @AlexanderLanin
    Member
  3. MaximilianSoerenPollak commented on Jan 16, 2025

    @MaximilianSoerenPollak
    ContributorAuthor

    Now also integrated into VsCode (other IDE's will follow when we integrate the rest as well there I guess).

    We can see at the defined test which has passed and which hasn't via a checkmark, and we also can see in a list all tests found as well as jump to them etc.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions