added unit tests

This commit is contained in:
2025-07-04 17:19:36 +08:00
parent bdad0511f2
commit b11533e819
7 changed files with 402 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ Intrasys is an internal financial transfers application built with Rust and Axum
### 1. Provision PostgreSQL Database
Run a PostgreSQL container with Docker:
The easiest way is to run a PostgreSQL container with Docker:
```bash
docker run --name intrasys-pg -d -e POSTGRES_PASSWORD=password -p 127.0.0.1:5432:5432 postgres:alpine
@@ -101,14 +101,6 @@ The application will be available at `http://localhost:3000`
sqlx migrate run
```
## Testing
Run the test suite with:
```bash
cargo test
```
## Assumptions
- All accounts use the same currency