# How to set Allure report in CodeFresh

**URL:** <https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664>\
**Category:** Integrations\
**Created:** [November 2, 2021, 4:27pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664 "2021-11-02T16:27:49Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 2, 2021, 4:27pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/1 "2021-11-02T16:27:49Z")

</div>

0

I created a cloud storage AWS S3 and connected to CodeFresh. Then as i following the instruction from allure documentation codefresh needs to look for allure-results but i dont know where is this folder and how to connect to it. I find a plugin and it looks like this `enter code here` upload\_report: title: Upload Allure Report type: test-reporting fail\_fast: false arguments: allure\_dir: /codefresh/volume/e2e\_api\_test/allure-report bucket\_name: amazon storage\_integration: minios branch: master

when im running regression its not showing me test result button, so should i create folder inside git or whats the steps?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 2, 2021, 4:30pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/2 "2021-11-02T16:30:10Z")

</div>

Hello and welcome to the Codefresh community

As explained in the documentation, the `allure-resuts` folder should be created after running Allure itself. See [Test reports · Codefresh | Docs](https://codefresh.io/docs/docs/testing/test-reports/#collecting-the-allure-test-results)

How do you run Allure in your pipeline? Could you post here the YAML of your pipeline please?

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 2, 2021, 4:54pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/3 "2021-11-02T16:54:30Z")

</div>

Hi! Thank you! Im pretty new in codefresh, as i get it i go to pipeline workflow and there is inline yaml  
here is at the bottom

# More examples of Codefresh YAML can be found at

# [Bootstrap · Content moved](https://codefresh.io/docs/docs/yaml-examples/examples/)

version: “1.0”

# Stages can help you organize your steps in stages

stages:

- “clone”
- “build”
- “test”

steps:  
clone:  
title: “Cloning repository”  
type: “git-clone”  
repo: “qalesson/flatlay7”  
# CF\_BRANCH value is auto set when pipeline is triggered  
# Learn more at [Bootstrap · Content moved](http://codefresh.io/docs/docs/codefresh-yaml/variables/)  
revision: “${{CF\_BRANCH}}”  
git: “github-1”  
stage: “clone”

build:  
title: “Building Docker image”  
type: “build”  
image\_name: “qalesson/flatlay7”  
working\_directory: “${{clone}}”  
tag: “${{CF\_BRANCH\_TAG\_NORMALIZED}}”  
dockerfile: “Dockerfile”  
stage: “build”

test:  
title: “Running test”  
type: “freestyle” # Run any command  
image: ${{build}}  
working\_directory: “${{clone}}” # Running command where code cloned  
volumes:  
- /dev/shm:/dev/shm  
commands:  
- “npm i”  
- “npm test”  
- cp -r -f ./allure-results $CF\_VOLUME\_PATH/allure-results  
stage: “test”

```
upload_report:
  title: Upload Allure Report
  type: test-reporting
  fail_fast: false
  arguments:
    allure_dir: /codefresh/volume/e2e_api_test/allure-report
    bucket_name: amazon
    storage_integration: minios
    branch: master
    
unit_test_reporting_step:
       title: Generate test reporting
       image: codefresh/cf-docker-test-reporting
       working_directory: '${{CF_VOLUME_PATH}}/'
       environment:
         - BUCKET_NAME=dct-user-data-lab111111
         - CF_STORAGE_INTEGRATION=amazon

```

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 2, 2021, 5:02pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/4 "2021-11-02T17:02:10Z")

</div>

Hi

I assume that your repository is at `https://github.com/qalesson/flatlay7`. Is that correct?

I cannot find any allure integration on it. Have you set it up according to the docs? [https://docs.qameta.io/allure-report/frameworks/js/mocha](https://docs.qameta.io/allure-report/frameworks/js/mocha)

I mean, if you forget Codefresh for a moment, if you run locally the tests on your workstation, is the `allure-results` folder created correctly?

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 2, 2021, 5:59pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/5 "2021-11-02T17:59:48Z")

</div>

yep, forget to merge pr, just did it, when running locally allure-reports folder created. still cant see it in codefresh, im gettin some error rn : Failed to run freestyle step: Running test

Caused by Container for step title: Running test, step type: freestyle, operation: Freestyle step. Failed  
with exit code: 1

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 2, 2021, 8:20pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/6 "2021-11-02T20:20:41Z")

</div>

maybe im doing something wrong, what should i do next after setting allure in framework ?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 3, 2021, 7:11am UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/7 "2021-11-03T07:11:33Z")

</div>

Can you post the URL of the build that has the error?

It should be something like `https://g.codefresh.io/build/61823374b28e9c80bcff`

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 3, 2021, 10:36pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/8 "2021-11-03T22:36:47Z")

</div>

[https://g.codefresh.io/build/61819bf6cc4eff9099831136](https://g.codefresh.io/build/61819bf6cc4eff9099831136)

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 4, 2021, 8:21am UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/9 "2021-11-04T08:21:01Z")

</div>

Thank you.

You also need to enable this checkbox in your account for me to see the build `https://codefresh.io/docs/docs/administration/user-settings/#enable-access-for-support-personnel`

By default your pipelines are not accessible to anybody (not even Codefresh personnel).

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 4, 2021, 3:15pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/10 "2021-11-04T15:15:04Z")

</div>

Just did it! [Codefresh | console](https://g.codefresh.io/build/61819bf6cc4eff9099831136)

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 5, 2021, 8:31am UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/11 "2021-11-05T08:31:37Z")

</div>

Hello

I checked your pipeline

```auto
Spec Files: 4 passed, 8 failed, 12 total (100% completed) in 00:03:29                                                              
                                                                                                                                        
npm ERR! Test failed. See above for more details.   

```

Your unit tests have failed. And therefore the whole pipeline has stopped.  
You have two choices:

1. Either fix the tests
2. Or make the pipeline continue even when there are failed tests as explained here with `fail_fast` property [Test reports · Codefresh | Docs](https://codefresh.io/docs/docs/testing/test-reports/#getting-results-from-tests-that-fail)

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 5, 2021, 8:36am UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/12 "2021-11-05T08:36:33Z")

</div>

Also looking at your pipeline.

1. The test, upload\_report and unit\_test\_reporting\_step don’t have the same indentation level
2. You only need the upload\_report OR the unit\_test\_reporting\_step. They both do the same thing (it is the old and the new syntax)

All details should be here [Test reports · Codefresh | Docs](https://codefresh.io/docs/docs/testing/test-reports/)

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 5, 2021, 4:23pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/13 "2021-11-05T16:23:49Z")

</div>

I added fail\_fast property and delete upload\_report, still error

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 5, 2021, 10:47pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/14 "2021-11-05T22:47:29Z")

</div>

do i need to have allure-report folder in git repo? or its gonna get created by codefresh somewhere?  
also maybe problem in path :  
unit\_test\_reporting\_step:  
title: Generate test reporting  
image: codefresh/cf-docker-test-reporting  
working\_directory: ‘${{CF\_VOLUME\_PATH}}/’  
environment:  
- BUCKET\_NAME=dct-user-data-lab111111  
- CF\_STORAGE\_INTEGRATION=amazon

did i write it correctly? bucket name the one from s3 aws storage? is there any requirements for this storage? private bucket or not?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 8, 2021, 4:00pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/15 "2021-11-08T16:00:32Z")

</div>

Hello again

As far as I know the folder `allure-report` is created by Allure itself. Codefresh only searches for this folder and presents the results in a nice format

I don’t think the S3 bucket needs special requirements. As long as Codefresh can access it (from the integration screen) it should work.

I have looped in our support team, so they will soon contact you and guide you with the errors.

---

<div class="post-metadata">

**Author:** ![kosarsute](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kosarsute](https://community.codefresh.io/u/kosarsute)\
**Post date:** [November 8, 2021, 4:12pm UTC](https://community.codefresh.io/t/how-to-set-allure-report-in-codefresh/664/16 "2021-11-08T16:12:56Z")

</div>

thanks! where they gonna reach me?
