-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Statusnone420 edited this page Jun 9, 2026
·
4 revisions
- Node.js 18+ and npm
- Rust stable
- Tauri prerequisites for your platform
- On Windows: Microsoft C++ Build Tools and WebView2
npm installNative app:
npm run tauri devBrowser mock mode:
npm run devBrowser mode does not use the Rust backend. It loads src/data/mockSession.ts after clicking Open a repository.
npm run test:rust
npm run build
npm run test:e2e:webNative E2E:
npm run test:e2e:tauriNative E2E builds a debug Tauri app and launches it with isolated environment variables:
DIFF_DRIFT_E2E_REPODIFF_DRIFT_E2E_EXPORT_PATHDIFF_DRIFT_E2E_STATE_FILEDIFF_DRIFT_E2E_BIN
Rust unit tests use src-tauri/src/test_fixture.rs to build temporary git repos with git2. They should not depend on demo/ or a globally installed git binary.
The optional demo repo can be seeded with:
npm run seed:demoKeep changes narrow:
- Backend analyzer changes need Rust tests.
- Frontend copy or interaction changes need web E2E updates when assertions change.
- Native behavior changes should run native E2E locally when practical.
- Documentation changes should avoid repeating the README in every page.
-
src-tauri/src/rules.rs: rule predicates and tests. -
src-tauri/src/session.rs: analysis orchestration and counts. -
src-tauri/src/watcher.rs: live updates. -
src/App.tsx: main frontend state. -
src/types.tsandsrc-tauri/src/model.rs: shared contract.