Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

github.com/Neaj-Morshad-101/testing

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/Neaj-Morshad-101/testing

Source
Go
Version
v0.0.0-20230726133446-f41b343fd783
Version published
Created
Source

testing

Resources: Ginkgo and Gomega

https://onsi.github.io/ginkgo/ https://onsi.github.io/gomega/

Ginkgo is a testing framework for Go designed to help you write expressive tests. It is best paired with the Gomega matcher library. When combined, Ginkgo and Gomega provide a rich and expressive DSL (Domain-specific Language) for writing tests.

Ginkgo:

Ginkgo is a testing framework for Go designed to help you write expressive tests.

Gomega:

Gomega is a matcher/assertion library.

Installing Ginkgo:

Ginkgo uses go modules. To add Ginkgo to your project, assuming you have a go.mod file setup, just go install it: go install github.com/onsi/ginkgo/v2/ginkgo go get github.com/onsi/gomega/...

Useful commands:

ginkgo bootstrap // add a Ginkgo suite to books pkg This will generate a file named books_suite_test.go in the books directory.

ginkgo generate book // to test book.go, generate book_test.go

FAQs

Package last updated on 26 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts