Skip to content

Releases: ozontech/testo

v1.5.1

17 Jun 10:58
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.5.1

What's Changed

Fixed

  • Fixed a bug when skipped tests in suite would trigger "no suite tests" warning.

Full Changelog: v1.5.0...v1.5.1

v1.5.0

14 Jun 19:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.5.0

What's Changed

Added

  • Added strict mode which turns warnings into hard errors. Can be enabled with -testo.strict command line argument and TESTO_STRICT environment variable (lower priority).

Changed

  • Testo error messages are now more descriptive.
  • Malformed method names (e.g. lowercase letter after Test prefix) raise fatal errors, similar to native go test runner.

See #20

Full Changelog: v1.4.0...v1.5.0

v1.4.0

07 Jun 10:32
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.4.0

What's Changed

  • Support for setting plugin priority (order) for Plan and Overrides components in #19

Full Changelog: v1.3.2...v1.4.0

v1.3.2

30 May 11:37
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.3.2

What's Changed

  • Fix data-race when running sub-tests in goroutines in #17

Full Changelog: v1.3.1...v1.3.2

v1.3.1

29 May 16:49
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.3.1

What's Changed

New Contributors

Full Changelog: v1.3.0...v1.3.1

v1.3.0

24 May 10:39
Immutable release. Only release title and notes can be modified.
26edd80

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.3.0

What's Changed

package main

import (
	"testing"

	"github.com/ozontech/testo"
)

type T = *testo.T

func TestSimple(t *testing.T) {
	testo.RunTest(t, func(t T) {
		t.Log("Hello from testo!")
	})
}

func TestMultiple(t *testing.T) {
	t.Run("First test", testo.Test(func(t T) {
		t.Log("Hello from the first test!")
	}))

	t.Run("Second test", testo.Test(func(t T) {
		t.Log("Hello from the second test!")
	}))
}
// new
var _ = testo.Options(
    myplugin.WithFoo(),
    myplugin.WithBar(),
)

// old (both are supported)
func init() {
    testo.Option(
        myplugin.WithFoo(),
        myplugin.WithBar(),
    )
}

Full Changelog: v1.2.0...v1.3.0

v1.2.0

21 May 07:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.2.0

What's Changed

type OuterSuite struct{ testo.Suite[T] }

func (OuterSuite) Test(t T) {
	testo.RunSubSuite(t, new(InnerSuite))
}

type InnerSuite struct{ testo.Suite[T] }

func (InnerSuite) Test(t T) {
	t.Log("Hello from sub-suite!")
}

New Contributors

Full Changelog: v1.1.0...v1.2.0

v1.1.0

19 May 21:24
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.1.0

What's Changed

New Contributors

Full Changelog: v1.0.1...v1.1.0

v1.0.1

15 May 11:12
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.0.1

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

13 May 14:06
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Install

go get github.com/ozontech/testo@v1.0.0

Full Changelog: https://github.com/ozontech/testo/commits/v1.0.0