-
Notifications
You must be signed in to change notification settings - Fork 1
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
DEVEXP-337: Mocked tests setup #97
Conversation
asein-sinch
commented
Jun 26, 2024
- Cucumber configuration
- Steps implementation for Fax.Faxes domain as a POC
- CI configuration to put the feature files in the right folder and run the cucumber tests
mkdir -p ./packages/fax/tests/e2e/features | ||
- name: Copy feature files | ||
run: | | ||
cp sinch-sdk-mockserver/features/fax/*.feature ./packages/fax/tests/e2e/features/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it having sense to add the feature files onto Docker image and access them from container when mounted ? (docker compose volumes
usage)
PROS:
- all requirements for e2e are stored within a single image and used from mounted container. So if image could from a hub, there is no longer dependency onto another repository
- in case of refactoring from source image repository (aggregation, doc, comments, ...) the "public availability" for feature will be by contracts onto "/features" container's directory and could be curated during image creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The destination folder has to match the Cucumber configuration. If we say to Cucumber to read from the docker volume, that's fine too. As we don't have an artifact repositoty to rely on for the moment, cloning the docker-compose file and the features is the simplest solution that came into my mind in a spirit of sharing the mockserver expectations and cucumber features across the SDKs