Skip to content

Export content test examples as JSON #1772

@gnprice

Description

@gnprice

We have a nice library of examples of Zulip message content in our tests, on the ContentExample and KatexExample classes in test/model/content_test.dart and test/model/katex_test.dart .

It'd be nice to export that test data in a JSON format. This would be useful for re-using the same test data in other Zulip codebases.

To do this, we can use package:json_annotation and package:json_serializable on the ContentNode subclasses, the same way we do for the JSON in the Zulip API.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-apiImplementing specific parts of the Zulip server APIa-contentParsing and rendering Zulip HTML content, notably message contentsa-tests

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions