allure-framework / allure-framework/allure-csharp

Serialize more types with ToString

Open
#502 2 comments 0 reactions 0 assignees View on GitHub
task:improvement theme:core
Dominant language
C#
Stars
125
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
18

Description

Since we use Newtonsoft.JSON with the default settings to serialize test or step parameters, some values are serialized in a less-than-optimal way:

- Enums are serialized as their underlying values instead of strings (see https://github.com/orgs/allure-framework/discussions/2560)
- Types from System.Reflection (PropertyInfo, etc) blows up
- Something else?...

Those are obvious cases when ToString would be preferrable.

Contributor guide

Open the contributing guide

Research direction

Start by locating where test or step parameters are serialized with Newtonsoft.Json's default settings. Reproduce the enum and System.Reflection cases described in the issue, then identify the intended set of values for ToString-based serialization; done means those cases serialize without errors and with readable strings.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.