Sublime Completions for Ginkgo and Gomega
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Snippets
.gitignore
Readme.md

Readme.md

Ginkgo Sublime Completions

A collection of Ginkgo and Gomega completions for Sublime Text

Installation

Use Package Control to search for and install Ginkgo Completions.

Provided Completions

Ginkgo Completions

BDD DSL

desc→/Desc→
Describe("", func() {
    
})
cont→/Cont→
Context("", func() {
    
})
it→/It→
It("", func() {
    
})
bef→/Bef→
BeforeEach(func() {
    
})
jus→/Jus→
JustBeforeEach(func() {
    
})
aft→/Aft→
AfterEach(func() {
    
})

Suite lifecycle

befs→/Befs→
BeforeSuite(func() {
    
})
afts→/Afts→
AfterSuite(func() {
    
})
syncbefs→/Syncbefs→
SynchronizedBeforeSuite(func() []byte {
    //runs on node 1
    return
}, func(node1Data []byte) {
    //runs on all nodes 
})
syncafts→/Syncafts→
SynchronizedAfterSuite(func() {
    //runs on all nodes
}, func() {
    //runs on node 1 
})

Measurements

meas→/Meas→
Measure("", func(b Benchmarker) {
    
})

Gomega Completions

Synchronous assertions

Ω→
Ω().Should(Equal())
Ωerr→
Ω(err).ShouldNot(HaveOccurred())
ex→/Ex→
Expect().To(Equal())
exerr→/Exerr→
Expect(err).NotTo(HaveOccurred())

Asynchronous Assertions

ev→/Ev→
Eventually().Should(Equal())
evf→/Evf→
Eventually(func() interface{} {
    return
}).Should(Equal())
cons→/Cons→
Consistently().Should(Equal())
consf→/Consf→
Consistently(func() interface{} {
    return
}).Should(Equal())