fixed test.yml and pom.xml (excludes controller tests)
This commit is contained in:
parent
65094b6cff
commit
1563be7260
2 changed files with 32 additions and 23 deletions
|
|
@ -48,26 +48,32 @@ jobs:
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Upload to Allure
|
- name: Upload to Allure
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
curl -s -o /dev/null \
|
# Login und Cookie speichern
|
||||||
-u admin:${{ secrets.ALLURE_PASSWORD }} \
|
curl -s -c cookies.txt \
|
||||||
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
|
||||||
|
|
||||||
curl -s \
|
# Create project
|
||||||
-u admin:${{ secrets.ALLURE_PASSWORD }} \
|
curl -s -o /dev/null -b cookies.txt \
|
||||||
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
for f in target/allure-results/*; do
|
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
||||||
[ -f "$f" ] && curl -s \
|
|
||||||
-u admin:${{ secrets.ALLURE_PASSWORD }} \
|
# Clean results
|
||||||
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
curl -s -b cookies.txt \
|
||||||
-F "results[]=@$f"
|
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
||||||
done
|
|
||||||
|
# Upload files
|
||||||
curl -s \
|
for f in target/allure-results/*; do
|
||||||
-u admin:${{ secrets.ALLURE_PASSWORD }} \
|
[ -f "$f" ] && curl -s -b cookies.txt \
|
||||||
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
||||||
|
-F "results[]=@$f"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Generate report
|
||||||
|
curl -s -b cookies.txt \
|
||||||
|
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
||||||
3
pom.xml
3
pom.xml
|
|
@ -314,6 +314,9 @@
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
<!-- Exclude analysis tests by default -->
|
<!-- Exclude analysis tests by default -->
|
||||||
<excludedGroups>${surefire.excludedGroups}</excludedGroups>
|
<excludedGroups>${surefire.excludedGroups}</excludedGroups>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/controller/**/*Test.java</exclude>
|
||||||
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue