Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Think of cross-platform roundtrip property tests #36

Open
chshersh opened this issue Feb 20, 2019 · 1 comment
Open

Think of cross-platform roundtrip property tests #36

chshersh opened this issue Feb 20, 2019 · 1 comment
Labels
question Further information is requested tests

Comments

@chshersh
Copy link
Contributor

It would be nice to have the roundrip property tests that will do the following steps for each data type:

  1. Generate random value on backend.
  2. Encode to JSON on backend.
  3. Send to frontend.
  4. Decode from JSON on frontend.
  5. Encode to JSON on frontend.
  6. Send it back to backend.
  7. Decode from JSON on backend.
  8. Compare with the original value.

Now, I'm pretty sure nobody did this before so we might have difficulties implementing this complex architecture. As a first step instead of doing property-based tests we can harcode several values and just display them both on frontend and backend.

@chshersh chshersh added question Further information is requested tests labels Feb 20, 2019
@chshersh
Copy link
Contributor Author

The part with testing hardcoded value is done in #54 and it works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested tests
Projects
None yet
Development

No branches or pull requests

1 participant