Allure report was skipped because there is no results directories found #2207
Unanswered
StanislavSurmenev
asked this question in
Questions & Support
Replies: 1 comment
-
|
I scanned the configuration, i found you have missed two things.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Добрый день!
Собрал тест на java с использованием maven junit5 allure.
На локальной машине тест выполняется удачно и алюр-отчет успешно формируется.
Но при запуске теста на сервере gitlab ci сборка проекта и тест проходят успешно, но при этом алюр может найти allure-results и в результате отчет не формируется
Использую следующий POM
`
4.0.0
com.example.junit5
18 UTF-8junit5-java-maven
1.0-SNAPSHOT
получаю такие логи
[INFO] Generate Allure report (report) with version 2.24.0 [INFO] Generate Allure report to /builds/devops/selenium/target/allure-report [ERROR] Directory /builds/devops/selenium/target/allure-results not found. [WARNING] Allure report was skipped because there is no results directories found. [INFO] [INFO] --- allure:2.12.0:serve (default-cli) @ junit5-java-maven --- [INFO] Allure installation directory /builds/devops/selenium/.allure [INFO] Try to finding out allure 2.24.0 [INFO] Generate Allure report (serve) with version 2.24.0 [INFO] Generate Allure report to /builds/devops/selenium/target/allure-report [ERROR] Directory /builds/devops/selenium/target/allure-results not found. [WARNING] Allure report was skipped because there is no results directories found. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:19 min [INFO] Finished at: 2023-11-16T10:54:20Z [INFO] ------------------------------------------------------------------------ [WARNING] [WARNING] Plugin validation issues were detected in 2 plugin(s) [WARNING] [WARNING] * io.qameta.allure:allure-maven:2.12.0 [WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.3.0 [WARNING] [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE] [WARNING] Uploading artifacts for successful job 00:01 Uploading artifacts... target/surefire-reports/*: found 5 matching artifact files and directories Uploading artifacts as "archive" to coordinator... 201 Created id=12347 responseStatus=201 Created token=64_YpWmw Cleaning up project directory and file based variables 00:00 Job succeeded Job succeededyml Файл
`image: markhobson/maven-chrome:jdk-20
stages:
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
test:
stage: test
allow_failure: true
tags:
- docker-test-runner
Run the tests
script:
- wget https://s-ncredit.neocode.kz/
- mvn $MAVEN_OPTS clean package
- mvn test -Dtest=TestAllPozitive
Store artifacts
artifacts:
when: always
name: "report"
paths:
- target/surefire-reports/*
expire_in: 1 h
`
Beta Was this translation helpful? Give feedback.
All reactions