Skip to content

Commit bdca29c

Browse files
authored
feat(backend): test suite (#15)
* ci: add backend tests workflow * test: add comprehensive backend integration and unit tests * fix: use REAL literals in COALESCE for SQLite type compatibility
1 parent 11c2183 commit bdca29c

File tree

20 files changed

+2813
-137
lines changed

20 files changed

+2813
-137
lines changed

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
push:
7+
branches: [master]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
backend-tests:
14+
name: Backend Tests
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: backend
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
26+
- name: Cache cargo registry
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.cargo/registry
31+
~/.cargo/git
32+
backend/target
33+
key: ${{ runner.os }}-cargo-test-${{ hashFiles('backend/Cargo.lock') }}
34+
restore-keys: |
35+
${{ runner.os }}-cargo-test-
36+
${{ runner.os }}-cargo-
37+
38+
- name: Run tests
39+
run: cargo test --all-features --verbose
40+
41+
- name: Run tests with release optimizations
42+
run: cargo test --release --all-features

0 commit comments

Comments
 (0)