Popularity
0.6
Stable
Activity
3.8
-
5
1
0

Programming language: Go
License: Apache License 2.0
Tags: Testing     Testing Frameworks    
Latest version: v0.11.0

Tt alternatives and similar packages

Based on the "Testing Frameworks" category.
Alternatively, view Tt alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Tt or a related project?

Add another 'Testing Frameworks' Package

README

tt

Simple and colorful test tools

CircleCI Status Appveyor codecov Build Status Go Report Card GoDoc Release Join the chat at https://gitter.im/go-ego/ego

Installation/Update

go get -u github.com/vcaesar/tt

Usage:

Look at an example

package tt

import (
    "fmt"
    "testing"

    "github.com/vcaesar/tt"
    "github.com/vcaesar/tt/example"
)

func TestAdd(t *testing.T) {
    fmt.Println(add.Add(1, 1))

    tt.Expect(t, "1", add.Add(1, 1))
    tt.Expect(t, "2", add.Add(1, 1))

    tt.Equal(t, 1, add.Add(1, 1))
    tt.Equal(t, 2, add.Add(1, 1))

    at := tt.New(t)
    at.Expect("2", add.Add(1, 1))
    at.Equal(2, add.Add(1, 1))
}

func Benchmark1(b *testing.B) {
    at := tt.New(b)
    fn := func() {
        at.Equal(2, add.Add(1, 1))
    }

    tt.BM(b, fn)
    // at.BM(b, fn)
}

func Benchmark2(b *testing.B) {
    at := tt.New(b)
    for i := 0; i < b.N; i++ {
        at.Equal(2, Add(1, 1))
    }
}

Thanks

Testify, the code has some inspiration.