Skills

Decorators

One-line reference for every Ginkgo decorator, grouped by what it does, with the node...

Install

npx skills add onsi/ginkgo --skill decorators -g -a claude-code -y
Repository
onsi/ginkgo9.1k
Category
Business
Updated
26d ago
License
MIT
Context cost
Lightabout 1,001 tokens
Runs scripts
No, instructions only

What it does

One-line reference for every Ginkgo decorator, grouped by what it does, with the node types each can decorate, Serial, Ordered, ContinueOnFailure, OncePerOrdered, Label, Focus, Pending, FlakeAttempts, MustPassRepeatedly, NodeTimeout, SpecTimeout, GracePeriod, PollProgressAfter/Interval, SuppressProgressReporting, SpecPriority, SemVerConstraint, AroundNode, Offset/CodeLocation, EntryDescription. Use to look up a decorator's exact name, semantics, and where it's legal.

Ginkgo decorator reference

Terse lookup. Decorators are passed alongside a node's text/closure: It("...", Serial, Label("slow"), func(){...}). Most attach to containers and/or subjects; some are setup-only or interruptible-only. Decorators on a container apply to all nodes within it; the innermost/most-specific wins when they conflict. Full docs: https://onsi.github.io/ginkgo/#decorator-reference.

Execution / ordering

  • Serial (container, subject), never runs in parallel; Ginkgo runs serial specs last, on process #1. → ginkgo:parallelism.
  • Ordered (container only), child specs run in definition order, never reordered; enables BeforeAll/AfterAll. → ginkgo:ordering-and-flakes.
  • ContinueOnFailure (outermost Ordered container only), a failing spec doesn't skip the rest of the ordered group.
  • OncePerOrdered (setup nodes), makes a BeforeEach/AfterEach run once around an Ordered container (like a BeforeAll) instead of per-spec.
  • SpecPriority(int) (container, subject), hint to run higher-priority specs earlier; use sparingly, not to impose a total order.

Selection / filtering (→ ginkgo:filtering)

  • Label("a", "b") (container, subject), tag specs for --label-filter; labels union down the hierarchy. No &|!,()/" chars.
  • Focus (container, subject), run only focused specs; don't commit it (CI exits non-zero). Constructors: FDescribe, FContext, FIt, FEntry.
  • Pending (container, subject), never run (and never compiled into the run set); no closure needed. Constructors: PDescribe, XDescribe, PIt, XIt, PEntry.
  • SemVerConstraint(">= 2.0.0", ...) / ComponentSemVerConstraint("redis", ">= 8.0.0") (container, subject), run only when --sem-ver-filter satisfies the constraint; children may narrow, not widen.
Read the whole SKILL.md on GitHub

More in Business