Skip to content
New issue

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

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

Already on GitHub? # to your account

Enhance tests by use of test containers and playwright. #42

Open
peterMuriuki opened this issue Jul 16, 2024 · 0 comments
Open

Enhance tests by use of test containers and playwright. #42

peterMuriuki opened this issue Jul 16, 2024 · 0 comments
Assignees

Comments

@peterMuriuki
Copy link
Collaborator

Express server has 2 main external service integrations:

  • a keycloak service
  • an optional redis service.

This makes it particular involving to write tests for functionality that lean more towards integration of these services .e.g testing endpoints that require authentication. We currently try to make use of mocks but this too can get elaborate and easily break when we update underlying libraries.

I propose looking into how we can use testcontainers to provision the above 2 mentioned services as ephemeral containers. we can then use playwright to orchestrate tests that might require user action like logging in via a web platform.

@peterMuriuki peterMuriuki self-assigned this Jul 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant