Skip to content

novln/macchiato

Repository files navigation

Macchiato

Documentation License

A mocha inspired reporter for Ginkgo

Macchiato

Example

Example

Usage

In your Ginkgo Suite, you can import Macchiato and use it as follows:

package books_test

import (
	"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.