编写 Ginkgo 规格
io.github.onsi/ginkgo/writing-specs
编写优秀的 Ginkgo spec——容器节点(Describe/Context/When)、主题节点(It/Specify)、setup/cleanup 节点(BeforeEach、JustBeforeEach、AfterEach、DeferCleanup、BeforeSuite/AfterSuite)、“容器内声明、BeforeEach 中初始化”规则、创建与配置分离、用 GinkgoHelper()/GinkgoHelperGo() 的可复用测试助手,以及 By/GinkgoWriter 输出。在编写或审查 spec 或提取测试助手时使用。涵盖构树期陷阱(容器体内不要放断言/初始化/循环捕获)。