We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Helper() in StepCtx
Helper()
StepCtx
Add t.Helper() to Error() and ErrorF
Error()
ErrorF
Test: bla_test.go
bla_test.go
func TestName(t *testing.T) { runner.Run(t, "Single test with allure-go Runner", func(t provider.T) { t.Epic("Compare with allure-go") t.Description("New Test Description") t.WithNewStep("Step description", func(ctx provider.StepCtx) { ctx.Errorf("Error message") }) }) } func TestName1(t *testing.T) { runner.Run(t, "Single test with allure-go Runner", func(t provider.T) { t.Errorf("Error message") }) }
Logs without helper:
=== RUN TestName === RUN TestName/Single_test_with_allure-go_Runner common.go:125: Error message --- FAIL: TestName (0.00s) --- FAIL: TestName/Single_test_with_allure-go_Runner (0.00s) === RUN TestName1 === RUN TestName1/Single_test_with_allure-go_Runner common.go:125: Error message --- FAIL: TestName1 (0.00s) --- FAIL: TestName1/Single_test_with_allure-go_Runner (0.00s)
Log with helper:
=== RUN TestName === RUN TestName/Single_test_with_allure-go_Runner bla_test.go:22: Error message <--- trace from test --- FAIL: TestName (0.00s) --- FAIL: TestName/Single_test_with_allure-go_Runner (0.00s) === RUN TestName1 === RUN TestName1/Single_test_with_allure-go_Runner bla_test.go:22: Error message <--- trace from test --- FAIL: TestName1 (0.00s) --- FAIL: TestName1/Single_test_with_allure-go_Runner (0.00s) FAIL
The text was updated successfully, but these errors were encountered:
#85
Sorry, something went wrong.
No branches or pull requests
Support
Helper()
inStepCtx
Add t.Helper() to
Error()
andErrorF
Test:
bla_test.go
Logs without helper:
Log with helper:
The text was updated successfully, but these errors were encountered: