Custom Matchers

Writing your own Gomega matchers — the GomegaMatcher interface (Match/FailureMessage/NegatedFailureMessage), gcustom.MakeMatcher with message templates and template data, the format package helpers (format.Message/format.Object), MatchMayChangeInTheFuture and StopTrying for Eventually/Consistently, and how to test and package custom matchers. Use when a built-in or composed matcher can't express your domain assertion and you need to build one.

onsi 17afac7 9.3 KB Updated

File contents

onsi/gomega/tree/main/plugins/gomega/skills/custom-matchers commit 17afac7357

Frequently asked questions

npx skillmds@latest add onsi/custom-matchers