Skip to content

pfried/cloud-e2e-bdd-test-runner-example-js

 
 

Repository files navigation

BDD Feature Runner for AWS Examples

GitHub Actions semantic-release Renovate Mergify Status Commitizen friendly code style: prettier ESLint: TypeScript

Example use of @nordicsemiconductor/e2e-bdd-test-runner.

npm ci           # install dependencies
npx cdk deploy   # deploy the stack to your AWS account
npm test         # run the tests

Note: AWS CDK follows the AWS SDK way of authenticating. See this guide to learn more.

Webhook receiver

The Webhook.feature shows how to use AWS ApiGateway, Lambda and SQS to set up a real test double for a webhook endpoint. It allows to test that a component which is supposed to send a webhook is actually sending it.

Set up CD

You need to create a developer token with repo and admin:repo_hook permissions for an account that has write permissions to your repository.

You need to store this token in AWS ParameterStore which is a one-time manual step done through the AWS CLI:

aws ssm put-parameter --name /codebuild/github-token --type String --value <Github Token>
aws ssm put-parameter --name /codebuild/github-username --type String --value <Github Username>

Then set up the continuous deployment:

npx cdk -a 'node dist/aws/cloudformation-cd.js' deploy

Architecture decision records (ADRs)

see ./adr.

Packages

No packages published

Languages

  • TypeScript 84.2%
  • Gherkin 7.7%
  • JavaScript 7.1%
  • Shell 1.0%