09 Oct '13, 2pm

Announcing Ginkgo and Gomega: BDD-Style Testing for Golang via @pivotallabs

Announcing Ginkgo and Gomega: BDD-Style Testing for Golang via @pivotallabs

I’m happy to announce that Ginkgo , a BDD-style testing framework for Go, and its preferred matcher library Gomega are ready for public release. There’s a comprehensive feature list , on the GitHub READMEs and both projects have extensive documentation written up (Ginkgo and Gomega ). Here’s a quick taste of what a Ginkgo & Gomega test looks like, there are many more samples in the documentation : Describe("ScoreKeeper", func() { var scoreKeeper *ScoreKeeper BeforeEach(func() { var err error scoreKeeper, err = NewScoreKeeper("Denver Broncos") Expect(err).NotTo(HaveOccured()) }) It("should have a starting score of 0", func() { Expect(scoreKeeper.Score).To(Equal(0)) }) Context("when a touchdown is scored", func() { BeforeEach(func() { scoreKeeper.Touchdown("Manning") }) It("should increment the score", func() { Expect(scoreKeeper.Score).To(Equal(6)) }) It("should update the ...

Full article: http://pivotallabs.com/announcing-ginkgo-and-gomega-bdd-s...

Tweets

@too_mitch

ruby5.envylabs.com 13 Oct '13, 6pm

October 8th, 2013 One day, two rubies with Rubinius 2.0 and JRuby 1.7.5. MRI 2.1 vs Rubinius 2.0 benchmark, Virtus 1.0, Ca...

@quavehead this is the style I want and you're ...

uggaustralia.com 14 Oct '13, 2am

I am a middle school teacher and I received my boots last Christmas as a gift. I wore them off and on to work and occasion...

Novo site do Sass com Style Guide

sass-lang.com 13 Oct '13, 9pm

Contributing to this website? Awesome! Use this style guide, developed by Team Sass Design. If you add new design, please ...