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

Test coverage - SDK test suites #2378

Open
bfops opened this issue Mar 7, 2025 · 0 comments
Open

Test coverage - SDK test suites #2378

bfops opened this issue Mar 7, 2025 · 0 comments

Comments

@bfops
Copy link
Collaborator

bfops commented Mar 7, 2025

Rust SDK test suite is complete and merged (though will likely be extended in the future in response to new features or discovering bugs). We now need to port the tests to the C#, Python and TypeScript SDKs.

Original design doc:

  • write test suites for all the different SDKs
  • have minimum checklist for things that should be tested
  • shared modules for test suites across all SDKs
    • potentially comment out parts of them or have some other “expected failure” infra to support differences in SDK functionality
      • e.g. C# does not support enums with payloads, so will need to avoid that test

test flow

  1. create project with module and client
  2. deploy module
  3. run generate
  4. build sdk
  5. run test

to test

  • subscribing, resubscribing
  • calling reducer and getting response
    • failing reducer and getting notified
    • auth flow, both getting new tokens and re-auth with existing tokens
    • express all (many?) types and generate bindings for them
      • contexts
        • table fields
        • reducer arguments
        • non-table type definitions
      • types
        • strings
          • incl. strings that need escapes
        • arrays
          • of all the other types
        • enums
          • without payloads
          • with payloads
        • structs
          • containing primitive types
          • containing enums
          • containing arrays
        • bools
        • integers
        • floats
        • maps?
          • maybe left as TODO

write test harness in rust

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

No branches or pull requests

1 participant