An open API service indexing awesome lists of open source software.

https://github.com/albumprinter/junit-synnefo-demo


https://github.com/albumprinter/junit-synnefo-demo

area-ecommerce build-babushka deploy-na domain-playground hosting-na owner-chaos-monkeys type-library

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Synnefo example

This project is an example project for [synnefo](https://github.com/albumprinter/junit-synnefo/), a jvm junit plugin to run cucumber steps in AWS CodeBuild.

# How to run the example?

Prerequisites:
- [gradle](https://gradle.org/)
- [allure](https://docs.qameta.io/allure/)

0) git clone this project: `git clone https://github.com/albumprinter/junit-synnefo-demo && cd junit-synnefo-demo`
1) Create a `AWS Codebuild role` and an `S3 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: https://github.com/albumprinter/junit-synnefo/pull/15):

2) Configure your AWS credentials by either using aws cli's `aws configure` or set the environment variables:

![Example](./doc/set_credentials.png)

3.1) Run the gradle command `gradle runSynnefoTests`:

![Example](./doc/run_gradle_cmd.png)

3.2) Or run the gradle task in Intellij IDEA:

![Example](./doc/intellij_idea_runner.png)

And wait for it to finish

![Example](./doc/intellij_idea_end.png)

4) Go to the reporting directory: `cd build && cd synnefo` and start the allure server: `allure serve .`

![Example](./doc/allure_serve.png)

5) Enjoy the report

![Example](./doc/allure_serve_report.png)