#e2e
10 tweets
I've added an #e2e test for ensuring that calls to an external API work, and I
really love that I can tie this all in one test file:
- set up the expected call to the remote API
- Describe the action that triggers this call
- Verify that it happened



So, started to separate instances for #e2e testing of
@bifravst on #Azure
(https://bifravst.gitbook.io/bifravst/bifravst-on-azure-wip/continuousintegration)
and suddenly the azure functions cli stops publishing all functions, while
running them locally it lists them all. Time for the weekend I guess :/
@AzureSupport


So this is fine for CI #e2e test, but you it means you can't easily run these
test against a development instance. :/
Also, the Issuer URL has a different value for developer generated tokens. Which
means a different config in prod vs. test. 🤕
Oh, why am I not surprise. I've started to look into #e2e testing the
@bifravst Azure flavour and I need to do even
more manual set-up on the portal to start using B2C authentication in the test
runner:
https://docs.microsoft.com/en-us/azure/active-directory-b2c/microsoft-graph-get-started?tabs=app-reg-ga
No fun building robust easy to change apps on
@Azure.
Today I started to work on #BDD #e2e tests for a cloud-native app, means I need
to test directly against the @awscloud SDK.
@cucumberbdd feature file:
https://github.com/bifravst/aws/blob/a42789d8fd79578a315feb54f7e1f3cc93eea412/features/IoTUserPolicy.feature
and this is the testrunner implementation:
https://github.com/coderbyheart/bdd-feature-runner-aws/blob/fef4f244bc0c278703a6c51f4e179e2d7c888543/src/steps/aws-sdk.ts
I had two super-interesting sessions on #javascript and #iot #e2e testing, so I
forgot to take sessions. My slides on the #e2e testing are here:
https://coderbyheart.com/it-does-not-run-on-my-machine/
I also mentioned this technique how I deploy lambdas to AWS:
https://coderbyheart.com/how-i-package-typescript-lambdas-for-aws/



