https://github.com/tommy351/goldga
A golden file testing (snapshot testing) library for gomega.
https://github.com/tommy351/goldga
ginkgo golang golden-file gomega snapshot-testing testing
Last synced: 4 months ago
JSON representation
A golden file testing (snapshot testing) library for gomega.
- Host: GitHub
- URL: https://github.com/tommy351/goldga
- Owner: tommy351
- License: apache-2.0
- Created: 2020-02-01T10:14:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-01T14:46:50.000Z (over 1 year ago)
- Last Synced: 2025-07-24T18:14:23.202Z (11 months ago)
- Topics: ginkgo, golang, golden-file, gomega, snapshot-testing, testing
- Language: Go
- Homepage:
- Size: 52.7 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Goldga
[](https://godoc.org/github.com/tommy351/goldga) [](https://github.com/tommy351/goldga/releases) [](https://circleci.com/gh/tommy351/goldga/tree/master) [](https://codecov.io/gh/tommy351/goldga)
A golden file testing (snapshot testing) library for [gomega](http://onsi.github.io/gomega/).
## Installation
```sh
go get github.com/tommy351/goldga
```
## Usage
```go
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/tommy351/goldga"
)
Describe("Example", func() {
It("works", func() {
Expect("foobar").To(goldga.Match())
})
})
```
See [examples](examples) folder for more examples.