Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aleksandr-kotlyar/local-allure-history-trends-bash

Script to generate local allure reports with history trends.
https://github.com/aleksandr-kotlyar/local-allure-history-trends-bash

allure allure-framework allure-history allure-report allure-reports allure2

Last synced: about 2 months ago
JSON representation

Script to generate local allure reports with history trends.

Awesome Lists containing this project

README

        

# local-allure-history-trends-bash
Script to generate local allure reports with history trends.

## Usage
`bash allure_generate.sh`

Recipe
1. Use allure-framework.
2. Save results into alluredir=`allure-results`.
3. Run the script from current repository `bash allure_generate.sh`.
4. Result: Allure Report will be generated into `/allure` directory with allure-history trends.

Run tests. Execute allure_generate.sh. Repeat. You will receive list of allure-reports

```
allure/2021-03-30_Wednesday_23-59-31
allure/2021-04-01_Thursday_00-03-13
allure/2021-04-01_Thursday_00-06-27
```

Use `allure open allure` and you will see the reports tree

![](LocalAllureReportsTree.png)

Choose the latest report, or the report you need and open it

![](LocalAllureHistoryTrend.png)

You can jump back through build history trend

![](JumpBackThroughBuildHistorTrendy.png)

## Advanced usage
`bash allure_generate.sh custom-results custom-reports`

- `custom-results` - from custom alluredir; `default='allure-results'`
- `custom-reports` - to custom allure root tree directory; `default='allure'`

## More
You can add this script execution to teardown after all your tests so you wouldn't need to
execute it
manually.