Skip to content

Conversation

@BeksOmega
Copy link
Contributor

@BeksOmega BeksOmega commented Jul 12, 2021

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Work on Project Cereal

Proposed Changes

Adds a suite for testing serializers, as outlined in my design document. Once we're sure that this suite covers enough cases, this will be moved into the dev-tools test helpers.

Currently this just tests that the XML round-trips correctly, but the idea is that you can plug in other serializers (including the JSON serializer).

Reason for Changes

Greatly increases test coverage of the serialization system. This gives us confidence that the new JSON serializer will properly round-trip state. Also once this is a test helper it will make it easy for devs to test their custom serializers.

Documentation

When this moves into the dev-tools package this will need to be added to the readme. But for now no docs are needed.

Additional Information

@moniika you don't need to give this a full review, but I would appreciate your expert eye giving it a quick look to make sure there are no glaring errors =)

@BeksOmega BeksOmega requested a review from a team as a code owner July 12, 2021 20:53
@BeksOmega BeksOmega changed the base branch from develop to project-cereal July 13, 2021 21:17
@BeksOmega
Copy link
Contributor Author

@moniika I think that everything's fixed! @maribethb Do you want to take a look before this goes in or does Monica's review cover it? Abby took a look yesterday to stay up-to-date but didn't review.

Copy link
Contributor

@moniika moniika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BeksOmega BeksOmega merged commit 9a9988f into RaspberryPiFoundation:project-cereal Jul 16, 2021
BeksOmega added a commit to BeksOmega/blockly that referenced this pull request Sep 13, 2021
…5034)

* Setup basic architecture for tests

* Attribute tests

* Easy field tests added

* Work on tests

* Work on tests

* Work on tests

* Add mutation tests

* Fixup ID tests

* Add more mutator tests

* Fixup lint and typos

* Uncomment tests

* Use test helpers

* Small PR comments

* Use test helpers for setup and teardown

* Add TODOs and fixup types

* Fix types

* Actually fix types
BeksOmega added a commit that referenced this pull request Sep 17, 2021
* Setup basic architecture for tests

* Attribute tests

* Easy field tests added

* Work on tests

* Work on tests

* Work on tests

* Add mutation tests

* Fixup ID tests

* Add more mutator tests

* Fixup lint and typos

* Uncomment tests

* Use test helpers

* Small PR comments

* Use test helpers for setup and teardown

* Add TODOs and fixup types

* Fix types

* Actually fix types
alschmiedt pushed a commit to alschmiedt/blockly that referenced this pull request Sep 20, 2021
…5034)

* Setup basic architecture for tests

* Attribute tests

* Easy field tests added

* Work on tests

* Work on tests

* Work on tests

* Add mutation tests

* Fixup ID tests

* Add more mutator tests

* Fixup lint and typos

* Uncomment tests

* Use test helpers

* Small PR comments

* Use test helpers for setup and teardown

* Add TODOs and fixup types

* Fix types

* Actually fix types
alschmiedt pushed a commit that referenced this pull request Sep 20, 2021
* Setup basic architecture for tests

* Attribute tests

* Easy field tests added

* Work on tests

* Work on tests

* Work on tests

* Add mutation tests

* Fixup ID tests

* Add more mutator tests

* Fixup lint and typos

* Uncomment tests

* Use test helpers

* Small PR comments

* Use test helpers for setup and teardown

* Add TODOs and fixup types

* Fix types

* Actually fix types
@BeksOmega BeksOmega deleted the tests/serialier branch April 5, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants