Unit tests for calculations
Designed as an explicit, testable part of the Atlas AI product boundary.
Docs · Testing
Pure finance services receive dense unit coverage. Repository behavior uses guarded isolated PostgreSQL schemas, while demo and self-host browser suites validate their distinct execution modes.
Core principles
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
Designed as an explicit, testable part of the Atlas AI product boundary.
System view
In depth
Calculation changes require pure unit coverage; repository changes also require guarded integration validation.
Automated tests accept only verified test-preview database endpoints and temporary schema prefixes.
Repository source
Thank you for helping improve Atlas AI. Contributions should preserve deterministic financial truth, privacy, explainability, and user agency.
Read the [Product Manifesto](docs/product/PRODUCT_MANIFESTO.md), [Architecture](docs/ARCHITECTURE.md), [AI Guidelines](docs/product/AI_GUIDELINES.md), and [Security Policy](SECURITY.md) before changing product or AI behavior.
git clone https://github.com/Tngc93/personal-finance-coach-dashboard.git
cd personal-finance-coach-dashboard
npm ci
cp .env.example .env.local
npm run prisma:generate
npm run devFor a database-free contribution environment:
PUBLIC_DEMO_MODE=true AI_PROVIDER=mock npm run devUse fictional data only. Never commit .env.local, database files, API keys, or real financial records.
Run the checks relevant to your change:
npm run security:secrets
npm run lint
npm run test:unit
npm run build
npm run build:demo
npm run test:e2e:demoRepository/data changes also require guarded PostgreSQL integration tests and standard E2E:
npm run test:integration
npm run test:e2eDo not point automated tests at production databases.
Use concise Conventional Commit-style messages:
Keep unrelated changes in separate commits.
1. Start from the current target branch and create a focused feature branch.
2. Confirm the issue or user problem and define acceptance criteria.
3. Keep secrets and real financial data out of the diff.
4. Run relevant validation and report any unavailable checks honestly.
5. Complete the pull request template, including risk and rollback notes.
6. Address review feedback without unrelated cleanup.
7. Do not merge while required CI checks are failing.
Search existing issues first. Provide fictional reproduction data and redact identifiers. Feature requests should explain user value, constraints, and how user agency remains protected.
Update documentation when changing setup, environment variables, architecture, provider support, security boundaries, or user workflows. Mark capabilities as implemented, experimental, or planned; do not present roadmap items as shipped.
Participation is governed by [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). By contributing, you agree to follow it.
Workflow
Explore Atlas AI with fictional data or review the architecture before running it in your own environment.