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
|
|
@ -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}"
|
||||
3
pom.xml
3
pom.xml
|
|
@ -314,6 +314,9 @@
|
|||
</systemPropertyVariables>
|
||||
<!-- Exclude analysis tests by default -->
|
||||
<excludedGroups>${surefire.excludedGroups}</excludedGroups>
|
||||
<excludes>
|
||||
<exclude>**/controller/**/*Test.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue