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
306 stars 33 forks source link

Run test failed with error: Failed marshal Result #71

Closed jurvanova closed 1 year ago

jurvanova commented 1 year ago

Describe the bug Run test fails with error message like:
Failed marshal Result: json: error calling MarshalJSON for type json.RawMessage: invalid character 'c' after top-level value Failed marshal Result: json: error calling MarshalJSON for type json.RawMessage: invalid character 'i' after top-level value

To Reproduce Error appears in github.com/ozontech/allure-go/pkg/allure@v0.6.10/container.go func printContainer()

go.mod github.com/ozontech/allure-go/pkg/framework v0.6.26 github.com/ozontech/allure-go/pkg/allure v0.6.10

go.sum github.com/ozontech/allure-go/pkg/allure v0.6.10 h1:chHzORobuPf3UJz23c2n3PIy6QaoxnLgaei2pwBiVxY= github.com/ozontech/allure-go/pkg/allure v0.6.10/go.mod h1:4oEG2yq+DGOzJS/ZjPc87C/mx3tAnlYpYonk77Ru/vQ= github.com/ozontech/allure-go/pkg/framework v0.6.26 h1:sHOBTQG5LFQhLFeaAi1zAI9fCSc/L0AbCweO+fgaNOQ= github.com/ozontech/allure-go/pkg/framework v0.6.26/go.mod h1:iMUFp2UHRFtEGiVajXGVGavlSurfrSfYe9fmutgbvmI=

Expected behavior Test runs without fails

Снимок экрана 2023-07-17 в 20 36 14

ismonsen commented 1 year ago

Hello! After update go get github.com/ozontech/allure-go/pkg/framework@v0.6.26 I have same problem Failed marshal Result: json: error calling MarshalJSON for type json.RawMessage: invalid character 'p' after top-level value

koodeex commented 1 year ago

@jurvanova, @ismonsen, please try pkg/allure@v0.6.11 and pkg/framework@v0.6.27

jurvanova commented 1 year ago

issue solved, thanks