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

End-to-end test setup #4833

Merged
merged 11 commits into from Apr 5, 2021
Merged

End-to-end test setup #4833

merged 11 commits into from Apr 5, 2021

Conversation

rijkvanzanten
Copy link
Member

@rijkvanzanten rijkvanzanten commented Apr 3, 2021

Uses Docker (through Dockerode in Node) to create a new image of the current state of the repo in a given version of Node, to then run that image once for every supported database vendor.

Database vendors can be requested specifically through TEST_DB_VENDOR (* for all, CSV or string for specific ones). The version of Node to test the built Directus instance on can be set through TEST_NODE_VERSION.

Requirements: Docker

Usage: npm run test:e2e


Left to-do:

  • Figure out why the wait for database stopped working
  • Loop over all requested vendors in actual test
CleanShot.2021-04-05.at.14.02.38.mp4

@rijkvanzanten
Copy link
Member Author

Note to self: await dB connection fails because of missing port mapping from db to local machine

This was referenced Apr 5, 2021
@rijkvanzanten rijkvanzanten marked this pull request as ready for review April 5, 2021 19:10
@rijkvanzanten rijkvanzanten merged commit c7476ce into main Apr 5, 2021
@rijkvanzanten rijkvanzanten deleted the tests branch April 5, 2021 19:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant