Skip to content

Commit

Permalink
test: include values for runtime and transport in pytest's header
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Oct 28, 2024
1 parent 43efe1e commit 18b7e68
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ def transport(request):
return request.config.getoption("lsp_transport")


@pytest.hookimpl(tryfirst=True)
def pytest_report_header(config: pytest.Config):
"""Report the above settings in pytest's output"""
runtime = config.getoption("lsp_runtime")
transport = config.getoption("lsp_transport")

return [f"pygls: {runtime=}, {transport=}"]


@pytest.fixture(scope="session")
def path_for():
"""Returns the path corresponding to a file in the example workspace"""
Expand Down

0 comments on commit 18b7e68

Please sign in to comment.