Skip to content

Kalimaha/ginkgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSpec-like custom reporter for Ginkgo

Custom reporter for Ginkgo testing framework.

Usage

Just add github.com/Kalimaha/ginkgo/reporter to the imports:

package calculator

import (
	"github.com/Kalimaha/ginkgo/reporter"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	"testing"
)

func TestReducers(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecsWithCustomReporters(t, "Calculator", []Reporter{reporter.New()})
}

Example

The calculator_test.go included in this repo will produce the following output:

Calculator
  Divide
    divides two numbers, A and B ✔️ 
    but when B is 0
      returns an error ✔️ 
  Sum
    sums two numbers ✔️ 

PASS

About

RSpec-like custom reporter for Ginkgo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages