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

Add webapi integration testing tool #22

Closed
oskardudycz opened this issue Feb 23, 2024 · 1 comment
Closed

Add webapi integration testing tool #22

oskardudycz opened this issue Feb 23, 2024 · 1 comment
Labels
enhancement New feature or request testing WebApi
Milestone

Comments

@oskardudycz
Copy link
Collaborator

Add WebApi integration tool like in the testing projections article. It should be:

  • using given/when/then pattern
  • take events in given and supertest request in when,
  • Then can tests events like command handling tests, but also should allow to doqueries etc,
    It should enable testing idempotency and optimistic concurrency, so running requests twice.
  • in the future, it could be testing OTel spans as Martin Thwaites shown in his talks,
  • This is not perfect with an in-memory event store but should be fine for business logic and integration tests in the ports/adapters style.
@oskardudycz oskardudycz changed the title Add webapi integration tool Add webapi integration testing tool Feb 23, 2024
@oskardudycz
Copy link
Collaborator Author

Fixed by #25.

@oskardudycz oskardudycz added the enhancement New feature or request label Feb 29, 2024
@oskardudycz oskardudycz added this to the 0.3.0 milestone Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing WebApi
Projects
None yet
Development

No branches or pull requests

1 participant