Skip to content

Restructure testing docs into overview and subpages#2912

Merged
Mason Daugherty (mdrxy) merged 32 commits intomainfrom
test-page-refactor
Mar 11, 2026
Merged

Restructure testing docs into overview and subpages#2912
Mason Daugherty (mdrxy) merged 32 commits intomainfrom
test-page-refactor

Conversation

@maahir30
Copy link
Copy Markdown
Contributor

Summary

  • Split the monolithic test.mdx page into an overview page and three subpages: unit testing, integration testing, and evals.
  • Merged the orphaned evals.mdx page into the new test/evals.mdx, eliminating content duplication.
  • Expanded integration testing with new sections on test organization, API key management, structural assertions, and cost reduction for both Python and JS.
  • Added comprehensive JS unit testing docs for the new fakeModel() utility.
  • Cleaned up the evals page: unified intro, reduced code repetition, and standardized JS imports.
  • Updated docs.json navigation, added redirects for old paths, and fixed cross-references in 5 files.

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Mintlify preview ID generated: preview-testpa-1772587179-b433b8d

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Mintlify preview ID generated: preview-testpa-1772588876-bb26b52

Comment thread src/oss/langchain/test/evals.mdx Outdated
Comment thread src/oss/langchain/test/evals.mdx Outdated
Comment thread src/oss/langchain/test.mdx
Comment thread src/oss/langchain/test/integration-testing.mdx Outdated
Comment thread src/oss/langchain/test/integration-testing.mdx
Comment thread src/oss/langchain/test/integration-testing.mdx Outdated
Comment thread src/oss/langchain/test/unit-testing.mdx Outdated
Comment thread src/oss/langchain/test/unit-testing.mdx Outdated
Comment thread src/oss/langchain/test/unit-testing.mdx Outdated
Comment thread src/oss/langchain/test/evals.mdx Outdated
Comment thread src/oss/langchain/test/evals.mdx Outdated
@npentrel
Copy link
Copy Markdown
Contributor

This LGTM once Hunter approves

Comment thread src/oss/langchain/test/unit-testing.mdx Outdated
Comment thread src/oss/langchain/test/unit-testing.mdx
Comment thread src/oss/langchain/test/integration-testing.mdx
@github-actions github-actions bot added docs-infra python For content related to the Python version of LangChain projects labels Mar 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 5, 2026

Mintlify preview ID generated: preview-testpa-1772751981-12e1fd0

Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Mintlify preview ID generated: preview-testpa-1772761741-7e24160

Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2026

Mintlify preview ID generated: preview-testpa-1772762309-dcc534f

Comment thread src/oss/langchain/test/integration-testing.mdx
Comment thread src/oss/langchain/test/integration-testing.mdx Outdated
Comment thread src/oss/langchain/test/integration-testing.mdx Outdated
Comment thread src/oss/langchain/test/integration-testing.mdx Outdated
Comment thread src/oss/langchain/test/evals.mdx Outdated
Comment thread src/oss/langchain/test/evals.mdx Outdated
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773261364-94a3636

@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773261567-e6969f5

@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773262063-2e1e3e8

@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773264748-d21886f

@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773267849-7c65c56

@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-testpa-1773269951-901b92d

@mdrxy Mason Daugherty (mdrxy) merged commit 919db52 into main Mar 11, 2026
18 checks passed
@mdrxy Mason Daugherty (mdrxy) deleted the test-page-refactor branch March 11, 2026 23:45
Naomi Pentrel (npentrel) pushed a commit to npentrel/langchain-docs that referenced this pull request Mar 12, 2026
## Summary

- Split the monolithic `test.mdx` page into an overview page and three
subpages: unit testing, integration testing, and evals.
- Merged the orphaned `evals.mdx` page into the new `test/evals.mdx`,
eliminating content duplication.
- Expanded integration testing with new sections on test organization,
API key management, structural assertions, and cost reduction for both
Python and JS.
- Added comprehensive JS unit testing docs for the new `fakeModel()`
utility.
- Cleaned up the evals page: unified intro, reduced code repetition, and
standardized JS imports.
- Updated `docs.json` navigation, added redirects for old paths, and
fixed cross-references in 5 files.

(Internal team members only / optional): Create a preview deployment as
necessary using the [Create Preview Branch
workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml)

---------

Co-authored-by: Mason Daugherty <github@mdrxy.com>
Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-infra internal langchain For docs changes to LangChain langgraph For docs changes to LangGraph langsmith For docs changes to LangSmith oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants