Reputation: 1
I'm trying to run my playwright python project on gitlab with a python docker image. I've managed to get this to run however, i'm using allure to generate the report once the test suite has run. This works perfectly fine on my personal desktop env. However, now that I have moved it over to gitlab I can't get the allure report to generate at the end.
I've attached my yaml file for gitlab but when trying to run any allure commands it says "allure: not found" or "allure: command not found". Any help would be greatly appreciated to get this working.
image: python:3.12
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
before_script:
- python --version ; pip --version # For debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install 'nodejs-bin[cmd]'
- npm install -g allure-commandline
- allure --version
- pip install -r requirements.txt # Installs the required dependencies before running
- playwright install
- playwright install-deps
- pip list # Verify the dependencies
stages: # List of stages for jobs, and their order of execution
- deploy
- generate_allure_results
- upload_results
AutomatedRegression: # Deployment and running of the feature files
stage: deploy
script:
- behave features
allow_failure: true
ParseTestResults: # Parsing test results
stage: generate_allure_results
script: "Parsing results..."
needs:
- job: AutomatedRegression
UploadResults: # Uploading results file to JIRA ticket?
stage: upload_results
script: "Some script needed here to upload test results into a Jira ticket?"
needs:
- job: ParseTestResults
Upvotes: 0
Views: 65