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

DEVEXP-337: Mocked tests setup #97

Merged
merged 11 commits into from
Jun 28, 2024
Merged

Conversation

asein-sinch
Copy link
Collaborator

  • 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

.github/workflows/run-ci.yaml Show resolved Hide resolved
mkdir -p ./packages/fax/tests/e2e/features
- name: Copy feature files
run: |
cp sinch-sdk-mockserver/features/fax/*.feature ./packages/fax/tests/e2e/features/

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

Copy link
Collaborator Author

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

@JPPortier JPPortier self-requested a review June 27, 2024 12:14
@asein-sinch asein-sinch merged commit a3c9a12 into v1.2-next Jun 28, 2024
4 checks passed
@asein-sinch asein-sinch deleted the DEVEXP-337_Mocked-tests-setup branch June 28, 2024 09:41
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

Successfully merging this pull request may close these issues.

2 participants