mr_t

package
v0.0.0-...-db1d7af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

README

Mr. T.

mr t

mr_t is a pretty silly, small package that implements an interface conforming to the *testing.T type in the testing package.

WHY WAT HOW ... WHO?

I have some projects with relatively large test suites written in the xunit style of tests common to Go. After Ginkgo was released, we wanted to switch, but did not want to slowly transform our codebase over a period of months, or take the hit to productivity and dedicate a week to rewriting tests.

Enter ginkgo-convert, a cli tool that converts your existing tests to Ginkgo. A lot of tests already use the testing.T type to make assertions and make their tests fail, so conforming interface that can call into Ginkgo is needed to help make the transition. MrT is that package.

mr_t pities the fool that doesn't use Go package written by cats that are also wizards.

cat wizard

Features

  • implements Error
  • implements Errorf
  • implements Fail
  • implements FailNow
  • implements Failed
  • implements Fatal
  • implements Fatalf
  • implements Log
  • implements Logf
  • implements Parallel
  • implements Skip
  • implements Skipf
  • implements SkipNow
  • implements Skipped

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestingT

type TestingT interface {
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Parallel()
	Skip(args ...interface{})
	Skipf(format string, args ...interface{})
	SkipNow(args ...interface{})
	Skipped() bool
}

func T

func T() TestingT

Directories

Path Synopsis
src
github.com/onsi/ginkgo
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
Ginkgo is a BDD-style testing framework for Golang The godoc documentation describes Ginkgo's API.
github.com/onsi/ginkgo/config
Ginkgo accepts a number of configuration options.
Ginkgo accepts a number of configuration options.
github.com/onsi/ginkgo/ginkgo
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To monitor packages and rerun tests when changes occur: ginkgo -watch <-r> </path/to/package> passing `ginkgo -watch` the `-r` flag will recursively detect all test suites under the current directory and monitor them.
The Ginkgo CLI The Ginkgo CLI is fully documented [here](http://onsi.github.io/ginkgo/#the_ginkgo_cli) To install: go install github.com/onsi/ginkgo/ginkgo To run tests: ginkgo To run tests in all subdirectories: ginkgo -r To run tests in particular packages: ginkgo <flags> /path/to/package /path/to/another/package To monitor packages and rerun tests when changes occur: ginkgo -watch <-r> </path/to/package> passing `ginkgo -watch` the `-r` flag will recursively detect all test suites under the current directory and monitor them.
github.com/onsi/ginkgo/ginkgo/aggregator
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output as one coherent stream.
Aggregator is a reporter used by the Ginkgo CLI to aggregate and present parallel test output as one coherent stream.
github.com/onsi/ginkgo/ginkgo/support/fsnotify
Package fsnotify implements filesystem notification.
Package fsnotify implements filesystem notification.
github.com/onsi/ginkgo/reporters
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
Ginkgo's Default Reporter A number of command line flags are available to tweak Ginkgo's default output.
github.com/onsi/ginkgo/thirdparty/gomocktestreporter
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL