Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/ginkgo-gomega-custom-formatter-example
https://github.com/dustinspecker/ginkgo-gomega-custom-formatter-example
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dustinspecker/ginkgo-gomega-custom-formatter-example
- Owner: dustinspecker
- License: mit
- Created: 2024-06-10T02:57:54.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:21:48.000Z (4 months ago)
- Last Synced: 2024-09-20T06:43:08.015Z (about 2 months ago)
- Language: Go
- Homepage: https://dustinspecker.com/posts/ginkgo-gomega-custom-formatter/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# ginkgo-gomega-custom-formatter-example
> Demonstrate using a [Gomega custom formatter](https://onsi.github.io/gomega/#adjusting-output) to pretty print different types of errors
## Usage
1. Clone the repository
1. Install Ginkgo cli via `go install -mod=mod github.com/onsi/ginkgo/ginkgo/v2/cmd/ginkgo`
1. Run tests via `gingko run ./tests`## Examples
- [register custom formatter](./test/test_suite_test.go)
- [test examples of different kinds of errors](./test/example_test.go)