This project is an example project for synnefo, a jvm junit plugin to run cucumber steps in AWS CodeBuild.
Prerequisites:
- git clone this project:
git clone https://github.com/albumprinter/junit-synnefo-demo && cd junit-synnefo-demo
- Create a
AWS Codebuild role
and anS3 bucket
that will be used by the project and set the corresponding environment variables:
set Synnefo_serviceRole=arn:aws:iam::9999999999:role/AWS-CodeBuild-Service
set Synnefo_bucketName=9999999999-synnefo
(it can also be done via -D parameters or in the code, see: albumprinter/junit-synnefo#15):
- Configure your AWS credentials by either using aws cli's
aws configure
or set the environment variables:
3.1) Run the gradle command gradle runSynnefoTests
:
3.2) Or run the gradle task in Intellij IDEA:
And wait for it to finish
- Go to the reporting directory:
cd build && cd synnefo
and start the allure server:allure serve .
- Enjoy the report