Skill / SKILL.md

Writing Specs

onsi/ginkgo

Author good Ginkgo specs — container nodes (Describe/Context/When), subject nodes (It/Specify), setup/cleanup nodes (BeforeEach, JustBeforeEach, AfterEach, DeferCleanup, BeforeSuite/AfterSuite), capturing failure diagnostics before teardown with DeferOnFailure, the "declare in container, initialize in BeforeEach" rule, separating creation from configuration, reusable test helpers with GinkgoHelper()/GinkgoHelperGo(), and By/GinkgoWriter output. Use when writing or reviewing specs or extracting a test helper. Covers the tree-construction-time pitfalls (no assertions/init/loop-capture in container bodies).
1 views 9,082 repository starsUpdated Nov 28, 2026
Overview

Author good Ginkgo specs — container nodes (Describe/Context/When), subject nodes (It/Specify), setup/cleanup nodes (BeforeEach, JustBeforeEach, AfterEach, DeferCleanup, BeforeSuite/AfterSuite), capturing failure diagnostics before teardown with DeferOnFailure, the "declare in container, initialize in BeforeEach" rule, separating creation from configuration, reusable test helpers with GinkgoHelper()/GinkgoHelperGo(), and By/GinkgoWriter output. Use when writing or reviewing specs or extracting a test helper. Covers the tree-construction-time pitfalls (no assertions/init/loop-capture in container bodies).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/onsi/ginkgo' skill-source

Use the complete skill-source/plugins/ginkgo/skills/writing-specs directory with your client’s skill installer.

  • plugins/ginkgo/skills/writing-specs

    master · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/ginkgo/skills/writing-specs

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
c7fd9fe6e11747d3b3a58988217e8fe9f0c4675a9861e4e9f381c416bfbf316d
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills