Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Your README Is Lying to You: Test Your Onboarding Docs Like You Test Code

说明与用途

自动化 README 测试通过在干净容器中执行标记的代码块,提前发现缺失依赖、版本漂移和遗漏步骤,降低新成员的上手难度。

问题

README files often become outdated or incomplete, causing new contributors to fail at early setup steps.

结果

The approach uncovers hidden dependencies, version drift, and missing steps before contributors encounter them, reducing onboarding friction and keeping the README reliable.

工作流

  • 1. Invite a new team member or intern who has never seen the repo to read the README and think aloud while following the instructions.
  • 2. Record friction points in a friction‑log.md table, noting blockers and minor issues.
  • 3. Tag executable code blocks in the README with a custom language identifier (e.g., ```bash readme-test).
  • 4. Run a Python script that extracts these blocks and executes them in a single shell session with set -euxo pipefail.
  • 5. Execute the script inside a minimal Docker container that only installs the prerequisites listed in the README.
  • 6. Add a GitHub Actions workflow that triggers on changes to README.md, docs/**, package.json, or pyproject.toml and runs the readme‑test script weekly.
  • 7. Review CI failures, fix the README, and iterate.

证据

"Bạn chỉ được đọc README, không được hỏi mình."

来源

"đánh dấu những code block cần test bằng một tag riêng trong info string của fence, ví dụ bash readme-test."

来源

"docker run --rm -v \"$PWD\":/src:ro ubuntu:24.04 bash -c 'apt-get update -qq ... python3 scripts/readme_runner.py README.md'"

来源

"trigger khi README đổi và chạy định kỳ hàng tuần"

来源

  • 记录日期: 2026-10-11T15:40:59.560Z