Skip to content

Synchronizer - e2e Happy path setup#15

Merged
emilianofant-split merged 22 commits intomainfrom
efant_e2eTests_v2
Jul 5, 2021
Merged

Synchronizer - e2e Happy path setup#15
emilianofant-split merged 22 commits intomainfrom
efant_e2eTests_v2

Conversation

@emilianofant-split
Copy link
Contributor

@emilianofant-split emilianofant-split commented Jun 29, 2021

Javascript Slim Synchronizer

What did you accomplish?

1 - Created a basic e2e setup to test the "happy path"
2 - Added json-server to mock the Split API (from which to obtain Splits and Segments)
3 - Added start-stop-server to run json-server API and then run e2e tests
4 - Configured redis-service in Travis
5 - Scripts to support Redis validation
6 - Added RedisCustomWrapper for testing with Redis
7 - Included SDK in Consumer mode to interact with Redis Storage and generate Impressions & Events

How do we test the changes introduced in this PR?

  • Checkout this branch
    git checkout efant_e2eTests_v2
  • Install dependencies
    npm i
  • Run e2e tests locally
    **NOTE: you need to set a Redis server locally at localhost:6379** npm run test:e2e`

Related JIRA tickets and PRs

E2E setup
E2E - Travis setup

Extra Notes

Copy link
Contributor

@EmilianoSanchez EmilianoSanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the other comments, check Emi if the file src/__tests__/index.spec.ts can be removed, because it doesn't have any meaningful test.
Same with src/__tests__/customStorage/package.json and src/__tests__/customStorage/package-lock.json that I think they are unnecessary.

@emilianofant-split emilianofant-split merged commit 02b57bf into main Jul 5, 2021
@emilianofant-split emilianofant-split deleted the efant_e2eTests_v2 branch July 5, 2021 12:50
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