feat(tests): enable RUST_BACKTRACE on all tests, for debugging

This commit is contained in:
perf3ct
2025-06-19 21:56:00 +00:00
parent 440d6e3f6e
commit b19123e6f2
5 changed files with 10 additions and 0 deletions
+4
View File
@@ -74,6 +74,7 @@ jobs:
run: cargo build --release
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/readur_test
RUST_BACKTRACE: 1
- name: Build frontend
working-directory: ./frontend
@@ -92,6 +93,7 @@ jobs:
FRONTEND_PATH: ./frontend/dist
UPLOAD_PATH: ./uploads
WATCH_PATH: ./watch
RUST_BACKTRACE: 1
- name: Wait for backend to be ready
run: |
@@ -104,6 +106,7 @@ jobs:
sleep 2
done
- name: Install Playwright browsers
working-directory: ./frontend
run: npx playwright install --with-deps
@@ -113,6 +116,7 @@ jobs:
run: npm run test:e2e
env:
VITE_API_URL: http://localhost:8000
PLAYWRIGHT_BASE_URL: http://localhost:8000
- name: Stop backend server
if: always()
+1
View File
@@ -109,6 +109,7 @@ jobs:
DATABASE_URL: ${{ env.DATABASE_URL }}
TEST_DATABASE_URL: ${{ env.DATABASE_URL }}
RUST_LOG: debug
RUST_BACKTRACE: 1
- name: Stop readur server
if: always()
+2
View File
@@ -53,6 +53,8 @@ jobs:
run: |
cargo test --lib
cargo test --tests unit_tests
env:
RUST_BACKTRACE: 1
frontend-unit-tests:
runs-on: ubuntu-latest