mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Enhance Selenium test workflow by adding debug step for test discovery and improving Allure results logging
This commit is contained in:
parent
3b6f15035d
commit
2ef2c9e166
1 changed files with 11 additions and 3 deletions
14
.github/workflows/e2e-testing.yml
vendored
14
.github/workflows/e2e-testing.yml
vendored
|
|
@ -131,7 +131,7 @@ jobs:
|
|||
createdAt: new Date(),
|
||||
services: {
|
||||
password: {
|
||||
bcrypt: "$2b$10$v9266B4sMuTCOgPsnIPibuxKoUwELIqPvTn7GQqGvvVibAEsmphsm"
|
||||
bcrypt: "$2b$10$v9266B4sMuTCOgPsnIPibuxKoUwELIqPvTn7GQqGvvVibAEsmph"
|
||||
},
|
||||
email: {
|
||||
verificationTokens: [
|
||||
|
|
@ -276,6 +276,10 @@ jobs:
|
|||
# Final verification
|
||||
curl -I "$WEKAN_URL" || exit 1
|
||||
|
||||
- name: Debug test discovery
|
||||
run: |
|
||||
pytest --collect-only tests/
|
||||
|
||||
- name: Run Selenium tests
|
||||
env:
|
||||
HEADLESS: true
|
||||
|
|
@ -288,7 +292,6 @@ jobs:
|
|||
run: |
|
||||
if [ -d "allure-results" ]; then rm -rf allure-results; fi
|
||||
mkdir -p allure-results
|
||||
|
||||
cat > allure-results/environment.properties << EOF
|
||||
os_platform=$(uname -s)
|
||||
os_release=$(lsb_release -r | awk '{print $2}')
|
||||
|
|
@ -300,9 +303,14 @@ jobs:
|
|||
Browser=${{ matrix.browser }}
|
||||
Resolution=${{ matrix.resolution.name }}
|
||||
EOF
|
||||
|
||||
pytest --alluredir=allure-results tests/
|
||||
|
||||
- name: List Allure Results
|
||||
run: |
|
||||
echo "Allure results for $ALLURE_SUITE"
|
||||
ls -lh allure-results
|
||||
cat allure-results/environment.properties || true
|
||||
|
||||
- name: Upload Allure results as artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always() # Upload even if tests fail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue