Releases: ozontech/testo
Releases · ozontech/testo
v1.3.1
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.3.1What's Changed
- Add VS Code snippets by @dmedovich in #15
- Fix a bug when long cache keys could trigger an error by @metafates in #16
New Contributors
- @dmedovich made their first contribution in #15
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.3.0What's Changed
- Tests without suites by @metafates in #10
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!")
}))
}- Support concise options by @metafates in #13
// 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
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.2.0What's Changed
- add FuncPc for sub-tests by @Dinhar in #12
- Support for sub-suites by @metafates in #11
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
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.1.0What's Changed
- Better log about collected plugins by @Vovandro in #6
- Add missing overrides by @metafates in #8
- Add suite caller
testing.Tfor reflection by @metafates in #9
New Contributors
Full Changelog: v1.0.1...v1.1.0
v1.0.1
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.0.1What's Changed
- Reverse order of level binded options by @metafates in #3
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Immutable
release. Only release title and notes can be modified.
Install
go get github.com/ozontech/testo@v1.0.0Full Changelog: https://github.com/ozontech/testo/commits/v1.0.0