There are few documentation mistakes in this example for the suite configuration:
package suite_demo
import (
"testing"
"github.com/ozontech/allure-go/pkg/framework/provider"
"github.com/ozontech/allure-go/pkg/framework/runner"
"github.com/ozontech/allure-go/pkg/framework/suite"
)
type DemoSuite struct {
suite.Suite
}
func (s *DemoSuite) TestSkip(t provider.T) {
t.Epic("Demo")
t.Feature("Suites")
t.Title("My first test")
t.Description(`
This test will be attached to the suite DemoSuite`)
}
func TestSkipDemo(t *testing.T) {
t.Parallel()
runner.RunSuite(t, new(SkipDemoSuite))
}
Seems the TestSkipDemo function should be like that:
There are few documentation mistakes in this example for the suite configuration:
Seems the
TestSkipDemo
function should be like that:new(DemoSuite)
instead of thenew(SkipDemoSuite)
cause theSkipDemoSuite
struc doesn't exist in the example.suite.RunSuite
instead of therunner.RunSuite
cause no anyRunSuite
method for therunner
Additional info
Just a picture with the current code example: