Skip to content
masterclass Buddy

LangSmith · Module

pytest-plugin

The LangSmith pytest plugin runs evaluations inside pytest and formats results with Rich. Mark selected tests with @pytest.mark.langsmith to enable LangSmith tracking.

Last updated

Since
v0.5

Syntax

@pytest.mark.langsmith
def test_name():
    ...

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • LangSmithPlugin
  • pytest_addoption
  • pytest_configure
  • pytest_runtest_call
  • pytest_report_teststatus

Source: pytest-plugin | langsmith | LangChain Reference. Checked 2026-11-03.