HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
onsi
gomega
Go2013–2017
onsi / gomega

gomega

Ginkgo's Preferred Matcher Library

4Distinct people
4Mentions
0Explicit recommenders
2.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Ginkgo's Preferred Matcher Library

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2013-10-10 10:56:19 UTC to 2017-12-11 12:27:17 UTC.

0122013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20132014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2017

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC101
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC000
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC110
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC211

What Hacker News says

4 sources
We make use of https://github.com/onsi/ginkgo and Gomega https://github.com/onsi/gomega for BDD testing with more expressive matchers. You might be familiar with some of these concepts from Cucumber/Jasmine/Mocha. They get significant use in Cloud Foundry and in the Kubernetes e2e tests. I appreciate a lot of people like the simplicity of the standard test library and if you're starting with Go development, it's not a bad idea to get used to that before exploring external dependencies. Caveat: While not necessarily a "maintainer", I have been doing a bunch of maintenance on these projects the past few weeks. Edit: Also we use counterfeiter https://github.com/maxbrunsfeld/counterfeiter for fakes.
In Ask HN: How to approach testing in Golang?
svett·May 16, 2017Submission

Seeking Remote Work

Hi Everyone, I am looking for remote opportunities as consultant and contractor. I have more 12+ years software engineering experience working for companies like Telerik and Pivotal. At Telerik, I was a senior engineer building their UI components for Desktop and IOS Devices as well as their cloud IDE (git integration). At Pivotal, I was engineering lead working on Cloudfoundry PaaS, where I was building Garden Linux Containers (an open source containerization technology tailored for CF). After that, I was leading PCF RabbitMQ team where we were building and operating RabbitMQ for Cloudfoundry. Languages: Golang, Ruby, C#, Objective-C, TypeScript, FlowType Web: React, Redux, Redux-saga, Redux-Logic, BlueprintJS Other Technologies: Ansible, BOSH, Concourse CI Methodologies: Scrum, XP, Pair programming and TDD Github: github.com/svett Linke
Read the rest
1 points · Open discussion

Ask HN: Favorite Go testing libraries/tools?

I've seen things like: go-supertest - https://github.com/franela/go-supertest and gomega - https://github.com/onsi/gomega And while appealing in some ways, I always end up at the same place: In many instances these tools seem to go against the principles of idiomatic go. I realize I could be totally wrong, and I also see how being diligent about state is theoretically useful for efficiently identifying/exposing points of failure. but many of the go unit-tests I end up writing take a fair amount of effort for setting up the proper state. And then everything else is pretty much a 1-3 liner to check for failures. If you look at http://onsi.github.io/ginkgo/, I think you'll see what I mean. It's shoe-horned in there. SO, what do you all do that you think is amazingly awesome or at least best-practices beyond golang.org recommendations to co
Read the rest
de as effectively as possible? Thanks! AaG
3 points · Open discussion
(context: i've been working mainly with python, and have almost no experience with go) My initial reaction to the example was that it looked like something that could be easily unit-tested, without the added layer of BDD over the top. But that's probably just a symptom of the example appearing as something that would be simple to build and test. E.g. in python i'd translate `Expect(scoreKeeper.Stats["Manning"]["Touchdowns"]).To(Equal(1))` to `assert scoreKeeper.Stats["Manning"]["Touchdowns"] == 1` which is essentially the same, but only uses one bit of machinery (assert) rather than three. That said, the more ways to test things the merrier. I think if you are interested in testing larger chunks of functionality / user-facing bits of behaviour rather than invariants of the building blocks of your program, then perhaps BDD starts to look m
Read the rest
ore appealing, so the two approaches seems complementary. Having an expressive static type system is again complementary, as that prevents you from making many trivial errors, and you just have to test for the remaining ones that the type system cannot express. (i miss that in python) after a little dig through the code, it looks like "EXPECT foo TO EQUAL barr" translates as https://github.com/onsi/gomega/blob/master/gomega.go#L15 https://github.com/onsi/gomega/blob/master/actual.go#L27 https://github.com/onsi/gomega/blob/master/actual.go#L48 https://github.com/onsi/gomega/blob/master/matchers.go#L7 https://github.com/onsi/gomega/blob/master/matchers/equal_ma... so there's lots of `interface{}`s and reflection and so on
In BDD testing for golang: Ginkgo and Gomega

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.