mirror of
https://github.com/readur/readur.git
synced 2026-04-24 07:10:02 -05:00
feat(tests): enable RUST_BACKTRACE on all tests, for debugging
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user