A mocha inspired reporter for Ginkgo
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")
}
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.
This is Free Software, released under the MIT License
.