Skip to content

sueddeutsche/plat-testing-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ginkgo testing helpers

Ginkgo testing helpers to make infrastructure tests simpler and more comprehensible.

Usage

Import this module into your Ginkgo/Gomega based testing suites.

import (
  . "github.com/onsi/ginkgo/v2"
  . "github.com/onsi/gomega"
  . "github.com/sueddeutsche/plat-testing-helpers"
)

var _ = Describe("my test context", func() {
  longString := "hello big and nice world"
  It("should do a test case", func() {
    ExpectSubstrings(longString, "hello", "nice", "world") // passes
    ExpectMissingSubstrings(longString, "bad people") // passes
  })
})
go mod tidy && go test

Update to new mod version

go get github.com/sueddeutsche/plat-testing-helpers@latest

About

Testing helpers for Go-based infrastructure tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages