picuscreative / testcafe-reporter-html

The HTML reporter for TestCafe
https://picuscreative.com/
22 stars 30 forks source link

HTML report, screenshots and videos not generated when running Testcafe tests #57

Open marinamarin91 opened 1 year ago

marinamarin91 commented 1 year ago

Hello,

We want to change the automated test execution from Jenkins to GitHub. I have managed to execute the tests and see in the console what is happening during the execution, but reports are not generated in the specified folders, so no artefacts are published. I am doing the following steps:

  1. checkout repository
  2. setup node JS
  3. Install Test Cafe and create reports folders
    • npm install (in package.json it is defined the following reporter: "testcafe-reporter-html": "^1.4.6")
    • mkdir -p $SCREENSHOTS_DIR $VIDEOS_DIR $REPORTS_DIR => all variables are defined in the job like this: image
  4. Run tests:

image image

  1. Upload artifacts: name: Upload artificts uses: actions/upload-artifact@v3 if: always() with: name: TestReport path: | artifacts

The tests are executed, but the following warning appears on publish artefacts: image

Do you have any idea what I am doing wrong? Thank you