LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithpytest_pluginLangSmithPlugin
Class●Since v0.3

LangSmithPlugin

Plugin for rendering LangSmith results.

Copy
LangSmithPlugin(
    self,
)

Constructors

Attributes

Methods

View source on GitHub
constructor
__init__
attribute
test_suites
attribute
test_suite_urls: dict
attribute
process_status: dict
attribute
status_lock
attribute
console
attribute
live
method
pytest_collection_finish
method
add_process_to_test_suite
method
update_process_status
method
pytest_runtest_logstart
method
generate_tables
method
pytest_configure
method
pytest_sessionfinish

Call after collection phase is completed and session.items is populated.

Group a test case with its test suite.

Update test results.

Initialize live display when first test starts.

Generate a collection of tables—one per suite.

Returns a 'Group' object so it can be rendered simultaneously by Rich Live.

Disable warning reporting and show no warnings in output.

Stop Rich Live rendering at the end of the session.