antithesis-documentation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Antithesis Documentation

Antithesis 文档

Antithesis Overview

Antithesis 概述

Antithesis is a testing platform that works like a specialized staging environment. You ensure your software is reliable by deploying it to Antithesis and running it there before you deploy it to production. It supplements your existing testing tools and lives alongside your normal CI/CD workflow.
When you deploy to Antithesis, your software runs in a simulation environment that is much more hostile than production. This quickly exposes bugs, including complicated, unlikely, and severe failures.
Because Antithesis's environment is perfectly deterministic, problems are reproducible with minimal effort. Unlike typical shared staging, you do not need to compete for deployment locks or worry about environmental drift since every deployment is completely isolated from one another.
Antithesis是一个类专业化预发布环境的测试平台。你可以在将软件部署到生产环境之前,先部署到Antithesis并运行测试,以此确保软件的可靠性。它是对现有测试工具的补充,可与常规CI/CD工作流配合使用。
当你将软件部署到Antithesis时,它会在一个比生产环境严苛得多的模拟环境中运行。这能快速暴露各类bug,包括复杂、低概率以及严重的故障。
由于Antithesis的环境是完全确定性的,问题可以轻松复现。与典型的共享预发布环境不同,你无需争抢部署锁,也不用担心环境漂移,因为每个部署都是完全相互隔离的。

Accessing Documentation

访问文档

The best way to access Antithesis documentation on the command line is via the Antithesis CLI which is called snouty.
Run
snouty docs --help
to get started.
在命令行中访问Antithesis文档的最佳方式是通过名为snouty的Antithesis CLI。
运行
snouty docs --help
开始使用。

If
snouty
is missing

若缺少
snouty

  1. Tell the user
    snouty
    is the Antithesis CLI.
  2. Point them to the install source:
    https://github.com/antithesishq/snouty
  3. Ask whether they want you to install it.
  4. After installation, re-run
    snouty --help
    .
  1. 告知用户
    snouty
    是Antithesis的CLI工具。
  2. 为其提供安装源:
    https://github.com/antithesishq/snouty
  3. 询问用户是否需要协助安装。
  4. 安装完成后,重新运行
    snouty --help

Using
snouty docs

使用
snouty docs

Use
snouty docs
to discover authoritative Antithesis documentation before giving detailed guidance. Inspect
snouty docs --help
to discover subcommands and usage examples.
Recommended workflow:
  1. Start with
    snouty docs tree --depth 2
    to get a quick overview of the docs.
  2. Use
    snouty docs tree <filter>
    to explore a section when you know the area but not the exact page name.
  3. Use
    snouty docs search <terms>
    to find likely pages for a specific topic.
  4. Use
    snouty docs search -l <terms>
    when you want just the page paths.
  5. Use
    snouty docs show <path>
    to read the full markdown page once you know the path.
  6. Cite the relevant documentation pages in your answer.
Useful details:
  • snouty docs show
    accepts page paths like
    using_antithesis/sdk/go
    .
  • snouty docs show
    also accepts
    /docs/.../
    style paths and tries to normalize them for you.
  • A warning about failing to update docs and falling back to cached docs is usually fine, especially in sandboxes without network access. Treat it as non-fatal if the requested docs content is still returned.
  • snouty docs sqlite
    prints the path to a local SQLite database containing all of the Antithesis documentation. Use this if you want to directly query the docs.
在提供详细指导前,先使用
snouty docs
获取权威的Antithesis文档。查看
snouty docs --help
了解子命令和使用示例。
推荐工作流:
  1. 先运行
    snouty docs tree --depth 2
    快速了解文档概览。
  2. 当你知道大致领域但不确定具体页面名称时,使用
    snouty docs tree <filter>
    探索对应板块。
  3. 使用
    snouty docs search <terms>
    查找特定主题的相关页面。
  4. 若仅需页面路径,使用
    snouty docs search -l <terms>
  5. 确定页面路径后,使用
    snouty docs show <path>
    查看完整的markdown页面。
  6. 在回答中引用相关的文档页面。
实用细节:
  • snouty docs show
    接受类似
    using_antithesis/sdk/go
    的页面路径。
  • snouty docs show
    也接受
    /docs/.../
    格式的路径,并会尝试自动规范化。
  • 如果出现更新文档失败并回退到缓存文档的警告,通常无需担心,尤其是在无网络访问的沙箱环境中。只要能返回请求的文档内容,就视为非致命问题。
  • snouty docs sqlite
    会打印包含所有Antithesis文档的本地SQLite数据库路径。若要直接查询文档,可使用此命令。

Direct Markdown Fallback

直接Markdown回退方案

If
snouty
is unavailable, you may fetch markdown pages directly from
https://antithesis.com/docs/
.
A plain text index of all markdown pages is available at
https://antithesis.com/docs/llms.txt
. Load this first.
Always add the
.md
extension before requesting files from
https://antithesis.com/docs/
.
Examples:
  • https://antithesis.com/docs/using_antithesis/sdk/go/
    becomes
    https://antithesis.com/docs/using_antithesis/sdk/go.md
  • /using_antithesis/sdk/go/
    becomes
    https://antithesis.com/docs/using_antithesis/sdk/go.md
Exceptions:
  • URLs with explicit file extensions such as
    .txt
    ,
    .js
    , or
    .so
  • docs/generated/...
    paths should be requested as-is
When presenting links to the user, prefer the normal HTML page URL instead of the
.md
URL.
If you want to link a user directly to a section, use a fragment with the slugified header when practical. If the slug is uncertain, link the page and name the section explicitly.
snouty
不可用,你可以直接从
https://antithesis.com/docs/
获取markdown页面。
所有markdown页面的纯文本索引可在
https://antithesis.com/docs/llms.txt
获取,请先加载该索引。
https://antithesis.com/docs/
请求文件时,务必添加
.md
扩展名。
示例:
  • https://antithesis.com/docs/using_antithesis/sdk/go/
    需改为
    https://antithesis.com/docs/using_antithesis/sdk/go.md
  • /using_antithesis/sdk/go/
    需改为
    https://antithesis.com/docs/using_antithesis/sdk/go.md
例外情况:
  • 带有明确文件扩展名的URL,如
    .txt
    .js
    .so
  • docs/generated/...
    格式的路径应直接请求
向用户展示链接时,优先使用常规HTML页面URL而非
.md
URL。
若要直接链接到页面的某个章节,尽可能使用带slug化标题的片段。如果不确定slug,可直接链接页面并明确标注章节名称。

Output

输出要求

  • Clear, grounded answers about Antithesis behavior, SDKs, setup, and best practices.
  • Relevant links to the documentation pages you used.
  • If the
    snouty
    command is missing ask the user if they want to install it, telling them that it is a CLI for working with the Antithesis API and docs.
  • 提供清晰、有依据的关于Antithesis行为、SDK、设置和最佳实践的答案。
  • 附上所使用的相关文档页面链接。
  • 若缺少
    snouty
    命令,询问用户是否需要安装,并告知这是用于操作Antithesis API和文档的CLI工具。