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

Automate alert push notification tests #1735

Merged
merged 12 commits into from Jan 3, 2020
Merged

Automate alert push notification tests #1735

merged 12 commits into from Jan 3, 2020

Conversation

ptbrowne
Copy link
Contributor

@ptbrowne ptbrowne commented Jan 3, 2020

Push notifications E2E tests were semi automatic since we had
to start the mock push notification server and compare the requests
received to what was expected.

Now the tests are automatic:

  • Mock push notification server is automatically started during tests
  • Push notifications sent to the mock push notification server are
    compared to what's expected
  • Tests are no longer run through a custom CLI but through Jest

@ptbrowne ptbrowne requested a review from drazik as a code owner January 3, 2020 10:12
Both push and notifications are tested under the jest framework
Tests with e2e.spec.js are not run by default but are run when jest
is run with the JEST_PROJECT=e2e environment variable
test/e2e/alerts.js Outdated Show resolved Hide resolved
docs/dev.md Outdated Show resolved Hide resolved
docs/dev.md Outdated Show resolved Hide resolved
jest.config.js Show resolved Hide resolved
test/e2e/alerts.e2e.spec.js Outdated Show resolved Hide resolved
test/e2e/alerts.e2e.spec.js Outdated Show resolved Hide resolved
@ptbrowne ptbrowne merged commit 2ba497a into master Jan 3, 2020
@ptbrowne ptbrowne deleted the push-notif-e2e branch January 3, 2020 15:17
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.

None yet

2 participants