Skip to content

About

Testing helpers for Go-based infrastructure tests

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Ginkgo testing helpers

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

Info

This module is used by Helm and Terraform tests. Therefore this repository is public.

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages