fixed test.yml and pom.xml (excludes controller tests)

This commit is contained in:
Jan 2026-02-08 19:36:53 +01:00
parent 65094b6cff
commit 1563be7260
2 changed files with 32 additions and 23 deletions

View file

@ -51,23 +51,29 @@ jobs:
- name: Upload to Allure
if: always()
run: |
curl -s -o /dev/null \
-u admin:${{ secrets.ALLURE_PASSWORD }} \
# Login und Cookie speichern
curl -s -c cookies.txt \
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
# Create project
curl -s -o /dev/null -b cookies.txt \
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
-H "Content-Type: application/json" \
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
curl -s \
-u admin:${{ secrets.ALLURE_PASSWORD }} \
# Clean results
curl -s -b cookies.txt \
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
# Upload files
for f in target/allure-results/*; do
[ -f "$f" ] && curl -s \
-u admin:${{ secrets.ALLURE_PASSWORD }} \
[ -f "$f" ] && curl -s -b cookies.txt \
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
-F "results[]=@$f"
done
curl -s \
-u admin:${{ secrets.ALLURE_PASSWORD }} \
# Generate report
curl -s -b cookies.txt \
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"

View file

@ -314,6 +314,9 @@
</systemPropertyVariables>
<!-- Exclude analysis tests by default -->
<excludedGroups>${surefire.excludedGroups}</excludedGroups>
<excludes>
<exclude>**/controller/**/*Test.java</exclude>
</excludes>
</configuration>
<dependencies>
<dependency>