Ecosystem: Scripting Workflow
Turning a notebook into a parameterized and testable script: arguments and config, logging and exit codes, atomic writes, idempotent runs, validation and scheduling.
Turning a notebook into a parameterized and testable script: arguments and config, logging and exit codes, atomic writes, idempotent runs, validation and scheduling.
Playwright and Cypress: driving a real browser, and the flakiness that comes with it.
Testcontainers and API mocks: testing the seam between your code and a real dependency.
k6 and JMeter: load models, thresholds and the difference between a benchmark and a capacity test.
C 的测试与调试由断言、Unity/CMocka、五种 sanitizer、gdb/lldb、valgrind、perf/strace、gcov/llvm-cov 与 libFuzzer/AFL++ 组成;本页给出各自的插桩方式、按项目类型的选型矩阵,以及“测试通过但 ASan 报错”这类故障的定位顺序。
测试框架提供输入,sanitizer 提供正确性判据,调试器与 perf 观测真实二进制;本页说明 GoogleTest、Catch2、doctest、ASan/UBSan/TSan/LSan、gdb/lldb、覆盖率与 fuzzing 各自回答什么问题。
从 go test 的包选择、表驱动与 t.Run 子测试,到 -race 的开销、-benchmem 与 benchstat 的对比方法、fuzz 与覆盖率门禁,并说明 CPU、heap、block、mutex profile 与 trace 各自回答什么问题。遇到缓存假绿、flaky 与覆盖率停滞时能按信号定位。
JUnit 5 architecture, the extension model, test doubles, Testcontainers and the surefire and failsafe split.
What a unit test isolates, the assertion libraries that express it, and where Vitest/Jest fits.