Skip to content

Add quality gates and testing infrastructure#1

Merged
oktayibis merged 8 commits into
mainfrom
feature/quality-gates
Dec 24, 2025
Merged

Add quality gates and testing infrastructure#1
oktayibis merged 8 commits into
mainfrom
feature/quality-gates

Conversation

@oktayibis

Copy link
Copy Markdown
Owner

CI/CD

  • Add GitHub Actions workflow for CI (frontend + backend quality checks)
  • Run on push to main and pull requests

Frontend Quality Gates

  • Configure ESLint with stricter rules (no-console, eqeqeq, etc.)
  • Add eslint-plugin-react-refresh
  • Set up Vitest for unit testing with jsdom environment
  • Add @testing-library/react for component testing
  • Configure coverage thresholds at 80%
  • Add test commands: test, test:watch, test:coverage, test:ui

Backend Quality Gates

  • Rust format check (cargo fmt)
  • Clippy linting (cargo clippy)
  • Unit tests with cargo test
  • Add tempfile dev dependency for fs tests

Test Coverage

  • src/lib/format.ts: 97% coverage (59 tests)
  • src/lib/constants.ts: 100% coverage
  • src-tauri/src/utils/format.rs: Full test coverage
  • src-tauri/src/utils/fs.rs: Full test coverage

New Files

  • .github/workflows/ci.yml
  • vitest.config.ts
  • src/test/setup.ts
  • src/lib/format.ts + tests
  • src/lib/constants.ts + tests
  • src-tauri/src/utils/format.rs
  • src-tauri/src/utils/fs.rs

🤖 Generated with Claude Code

oktayibis and others added 8 commits December 24, 2025 14:17
## CI/CD
- Add GitHub Actions workflow for CI (frontend + backend quality checks)
- Run on push to main and pull requests

## Frontend Quality Gates
- Configure ESLint with stricter rules (no-console, eqeqeq, etc.)
- Add eslint-plugin-react-refresh
- Set up Vitest for unit testing with jsdom environment
- Add @testing-library/react for component testing
- Configure coverage thresholds at 80%
- Add test commands: test, test:watch, test:coverage, test:ui

## Backend Quality Gates
- Rust format check (cargo fmt)
- Clippy linting (cargo clippy)
- Unit tests with cargo test
- Add tempfile dev dependency for fs tests

## Test Coverage
- src/lib/format.ts: 97% coverage (59 tests)
- src/lib/constants.ts: 100% coverage
- src-tauri/src/utils/format.rs: Full test coverage
- src-tauri/src/utils/fs.rs: Full test coverage

## New Files
- .github/workflows/ci.yml
- vitest.config.ts
- src/test/setup.ts
- src/lib/format.ts + tests
- src/lib/constants.ts + tests
- src-tauri/src/utils/format.rs
- src-tauri/src/utils/fs.rs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds two new entries to the .gitignore file: the .zenflow/
directory and the GEMINI.md file. This ensures these files and
directories are properly ignored by git.
- Reordered module declarations in lib.rs and mod.rs for better
  structure
- Cleaned up trailing whitespace and formatting in various model files
- No functional changes, only code organization and formatting
  improvements
Add tests for format_size, get_relative_time, format_relative_time with
various time units, and file system utilities including
get_accessed_time and get_size edge cases.
@oktayibis oktayibis merged commit 96010e0 into main Dec 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant