Files
storkit/README.md

85 lines
1.5 KiB
Markdown
Raw Normal View History

# Living Spec Standalone (Web Server Binary)
2025-12-24 16:29:33 +00:00
This app runs as a single Rust web server binary that serves the Vite/React frontend and exposes APIs.
The frontend lives in the `frontend/` directory.
2025-12-24 16:29:33 +00:00
2026-02-06 16:28:50 +00:00
## Running it
```bash
# Build the frontend
cd frontend
pnpm install
pnpm build
cd ..
# Run the server (serves embedded frontend/dist/)
cargo run --manifest-path server/Cargo.toml
2026-02-06 16:28:50 +00:00
```
2026-01-27 14:45:28 +00:00
## Testing
2025-12-24 16:29:33 +00:00
2026-01-27 14:45:28 +00:00
This project uses **nextest** for running tests and **cargo-llvm-cov** for code coverage.
### Install Tools
```bash
cargo install cargo-nextest cargo-llvm-cov
```
### Run Tests
```bash
# Run all tests
cargo nextest run
# Run specific module
cargo nextest run search_files
# Run with verbose output
cargo nextest run --no-capture
```
### Generate Coverage
```bash
# HTML report (opens in browser)
cargo llvm-cov nextest --html --open
# Terminal output
cargo llvm-cov nextest
# LCOV format (for CI)
cargo llvm-cov nextest --lcov --output-path lcov.info
# Clean coverage data
cargo llvm-cov clean
```
### Configuration
- **Nextest config**: `.config/nextest.toml`
- **Coverage output**: `target/llvm-cov/html/index.html`
## Current Coverage (search_files module)
```
Module: commands/search.rs
├── Region Coverage: 75.36%
├── Function Coverage: 69.05%
└── Line Coverage: 72.55%
```
### Available Test Profiles
```bash
# Development (default)
cargo nextest run
# CI with retries
cargo nextest run --profile ci
# Coverage optimized
cargo nextest run --profile coverage
```