Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novln/macchiato
A mocha inspired reporter for Ginkgo.
https://github.com/novln/macchiato
ginkgo go golang mocha testing
Last synced: 2 months ago
JSON representation
A mocha inspired reporter for Ginkgo.
- Host: GitHub
- URL: https://github.com/novln/macchiato
- Owner: novln
- License: mit
- Created: 2016-03-29T16:52:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T05:22:01.000Z (almost 2 years ago)
- Last Synced: 2024-06-19T02:09:04.111Z (6 months ago)
- Topics: ginkgo, go, golang, mocha, testing
- Language: Go
- Homepage:
- Size: 204 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Macchiato
[![Documentation][godoc-img]][godoc-url] ![License][license-img]
A mocha inspired reporter for [Ginkgo](https://onsi.github.io/ginkgo/)
[![Macchiato][macchiato-img]][macchiato-url]
## Example
![Example][example-img]
## Usage
In your Ginkgo Suite, you can import *Macchiato* and use it as follows:
```go
package books_testimport (
"testing""github.com/novln/macchiato"
"github.com/onsi/ginkgo"
"github.com/onsi/gomega"
)func TestBooks(t *testing.T) {
gomega.RegisterFailHandler(ginkgo.Fail)
macchiato.RunSpecs(t, "Books Suite")
}
```## Under the hood
`macchiato.RunSpecs` will run **Ginkgo** with `RunSpecsWithCustomReporters` and the default Ginkgo's `Reporter`. However, the underlying `Stenographer` is replaced with a Macchiato implementation, which handle the rendering on the console output.
## License
This is Free Software, released under the [`MIT License`](LICENSE).
[macchiato-url]: https://github.com/novln/macchiato
[macchiato-img]: https://raw.githubusercontent.com/novln/macchiato/master/macchiato.jpg
[godoc-url]: https://godoc.org/github.com/novln/macchiato
[godoc-img]: https://godoc.org/github.com/novln/macchiato?status.svg
[license-img]: https://img.shields.io/badge/license-MIT-blue.svg
[example-img]: https://raw.githubusercontent.com/novln/macchiato/master/example.jpg