ozontech / allure-go

Complete Allure provider in Go which doesn't overload the interface usage
https://t.me/allure_go_chat
Apache License 2.0
317 stars 34 forks source link

Add functions to logging with automatic step creation #26

Closed koodeex closed 2 years ago

koodeex commented 2 years ago

Is your feature request related to a problem? Please describe. Add functions to logging with automatic step creation. It will reduce amount of calls for test describing

Describe the solution you'd like

func TestSome(t provider.T) {
     t.LogStep("Step1")
     t.LogfStep("%s, %s", "arg1", "arg2")
     t.WithNewStep("Step3", func(sCtx provider.StepCtx) {
    sCtx.LogStep("Step3.1")
    sCtx.LogfStep("Step3.2: %s, %s", "arg1", "arg2")
     })
}
Снимок экрана 2022-08-15 в 22 14 10