Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DataPupOrg/DataPup
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: DataPupOrg/DataPup
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/test-framework
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 18 files changed
  • 1 contributor

Commits on Aug 9, 2025

  1. feat: add comprehensive testing framework with Vitest

    Implemented a robust testing infrastructure to improve code quality and maintainability.
    
    - Set up Vitest with multi-environment support (main, renderer, integration)
    - Added test helpers and utilities for mocking Electron APIs
    - Created example tests for database manager and PostgreSQL implementation
    - Configured coverage reporting with @vitest/coverage-v8
    - Added GitHub Actions workflow for automated testing on PRs
    - Included React Testing Library for component testing
    - Documented testing patterns and best practices
    
    Current status:
    - 14 tests passing (DatabaseManager fully tested)
    - Test framework operational with 11.5% initial coverage
    - Ready for community contributions to expand test coverage
    sahithvibudhi committed Aug 9, 2025
    Configuration menu
    Copy the full SHA
    fabe527 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2025

  1. feat: implement comprehensive database integration testing

    Added robust integration testing infrastructure for real database testing with Docker support.
    
    - Created Docker Compose setup for PostgreSQL and ClickHouse test containers
    - Implemented test helpers for table management and transactions
    - Added comprehensive bulk operations integration tests
    - Included test isolation with automatic cleanup
    - Added npm scripts for easy Docker-based testing
    - Documented integration testing patterns and best practices
    
    Integration tests can now:
    - Test against real databases using Docker containers
    - Handle test data isolation and cleanup
    - Verify bulk operations and transactions
    - Skip gracefully when databases are unavailable
    sahithvibudhi committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    4998c30 View commit details
    Browse the repository at this point in the history
  2. refactor: simplify integration testing with Testcontainers only

    Removed hybrid approach and consolidated on Testcontainers for cleaner, more maintainable code.
    
    - Removed Docker Compose setup and related files
    - Cleaned up test code by removing unnecessary comments
    - Simplified helper functions and test structure
    - Consolidated integration tests into single database.test.ts
    - Updated documentation to reflect single approach
    - Added PostgreSQL and ClickHouse container helpers
    - Implemented automatic container lifecycle management
    
    Benefits:
    - No manual setup required
    - True test isolation with fresh containers
    - Dynamic port allocation prevents conflicts
    - Automatic cleanup guaranteed
    - CI/CD ready without additional configuration
    sahithvibudhi committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    b51065e View commit details
    Browse the repository at this point in the history
Loading