Skip to content

Create an analyzer to flag when a test case isn't serializable #3535

@bradwilson

Description

@bradwilson

In v2 and non-AOT v3, test cases must be serializable. There should be an analyzer to trigger when this isn't done.

Note that in v3, the test case might not be directly serializable, since serialization might be handled by an "external" serializer that implements IXunitSerializer rather than the test case itself implementing IXunitSerializable.

From #3528

Metadata

Metadata

Assignees

No one assigned

    Labels

    Analyzershttps://github.com/xunit/xunit.analyzersFeatureA request for a new featurehelp wantedA community-provided PR would be welcomed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions