CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/ginkgo-tests

Configures and runs Ginkgo - Go BDD test framework with `Describe` / `Context` / `It` nesting; `BeforeEach` / `AfterEach` / `JustBeforeEach` / `JustAfterEach` lifecycle; Gomega matchers DSL (`Expect(actual).To(Equal(expected))`); parallel execution via `-p`; focus (`F` prefix) + skip (`P` prefix); `DescribeTable` + `Entry` for parametrized tests; `ginkgo` CLI tool. Use when working with Go on a BDD-style test suite (Kubernetes-ecosystem standard).

80

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

gomega.mdreferences/

Gomega matchers reference

Per Gomega documentation.

Expect(actual).To(matcher) and its negation Expect(actual).NotTo(matcher) are the core assertion forms.

Equality and nil

Expect(value).To(Equal(expected))
Expect(value).NotTo(Equal(unexpected))
Expect(value).To(BeNil())
Expect(value).To(BeTrue())

Strings

Expect(str).To(ContainSubstring("substring"))
Expect(str).To(MatchRegexp(`\d+`))

Collections

Expect(list).To(HaveLen(3))
Expect(list).To(ContainElement("alice"))
Expect(list).To(ConsistOf("alice", "bob"))   // unordered

Numeric

Expect(value).To(BeNumerically(">", 0))
Expect(value).To(BeNumerically("~", 3.14, 0.01))   // within tolerance

Panics, errors, channels

Expect(action).To(Panic())
Expect(err).To(MatchError("expected message"))
Expect(channel).To(Receive(&value))

Async polling

Eventually(func() bool { return ready() }).Should(BeTrue())
Consistently(func() bool { return stable() }).Should(BeTrue())

Eventually polls until the condition holds; Consistently polls to verify it stays true. Both suit async and concurrent code where a value settles over time rather than immediately.

references

SKILL.md

tile.json