Ich habe meine Yaml-Datei für Gitlab angehängt, aber beim Versuch, sie auszuführen Bei allen Allure-Befehlen wird „Allure: nicht gefunden“ oder „Allure: Befehl nicht gefunden“ angezeigt. Wir würden uns über jede Hilfe sehr freuen, damit dies funktioniert.
Code: Select all
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