10 个仓库
Frameworks for unit testing, regression testing, and finding logic bugs.
Explore 10 awesome GitHub repositories matching part of an awesome list · Database Testing. Refine with filters or upvote what's useful.
Hypothesis is a Python property-based testing library and data generation engine. It enables the discovery of edge cases and bugs by generating a wide range of randomized inputs based on defined strategies and shrinking complex failing examples to their smallest possible form. It also functions as a state machine testing framework to verify system behavior across sequences of interdependent operations. The project features a fuzzing integration layer that converts raw byte buffers from coverage-guided fuzzers into structured test cases. It includes a persistence mechanism to store and synchro
Implements a specialized storage mechanism to track and manage the history of test cases and failures.
Testcontainers for Java is a library for launching and managing disposable Docker containers to provide isolated dependencies for automated tests. It provides specialized provisioners for containerized databases, a manager for WebDriver browser containers, and an orchestrator for deploying multi-container applications via Docker Compose. The project ensures reproducible data states through database schema initialization and provides integration with JUnit to manage the lifecycle of external services. It supports automated browser testing by launching Selenium containers with the ability to re
Allows running real database engines in Docker containers during tests to replace mocks or in-memory databases.
Hibernate ORM 是一个 Java 对象关系映射器,也是 Jakarta Persistence API 的完整实现。它作为 SQL 数据库抽象层,将 Java 对象模型转换为关系数据库模式,以管理数据持久化和生命周期。 该框架以其多租户数据隔离框架而著称,可在单个数据库实例中分离客户数据。它还具有数据库模式生成器,可根据实体映射自动生成和更新关系结构。 该系统涵盖了广泛的功能领域,包括事务管理、并发锁定控制以及用于审计日志的时间数据跟踪。它通过实体图策略提供数据获取优化工具,并支持向量数据和国家化字符等高级数据类型。 该项目包含一套全面的持久层测试工具,包括数据库方言过滤和规范合规性测试。
Includes utilities to execute or skip specific tests dynamically based on the database dialect in use.
This project is a reference implementation of Domain-Driven Design, Clean Architecture, and Command Query Responsibility Segregation (CQRS) patterns using the Go programming language. It serves as a sample application to demonstrate how to decouple core domain rules from infrastructure and delivery mechanisms. The system is built as a gRPC microservices architecture, utilizing type-safe communication and service contracts. It implements an event-driven architecture to manage eventual consistency and asynchronous processing, specifically employing the Outbox pattern to ensure reliable messagin
Ensures data persistence layers function correctly by running tests against real database engines in containers.
Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while running on asyncio. It defines database tables as Python classes with typed fields and supports foreign key, many-to-many, and one-to-one relations, providing a chainable query API for filtering, annotating, grouping, and prefetching related objects without blocking the event loop. The ORM includes a built-in migration engine that detects model changes, generates migration files, and applies or reverts schema changes through a command-line tool. It connects to PostgreSQL, MyS
Allows skipping tests based on the connected database's supported features or dialect.
Testcontainers for .NET 是一个 Docker 测试库和集成测试框架,旨在管理一次性容器的生命周期。它提供高级抽象作为 Docker API 包装器来配置临时基础设施,用真实的数据库、消息队列和搜索引擎实例替换 Mock,以确保隔离且可重现的测试环境。 该项目的特色在于构建器-配置-容器模式和动态端口绑定机制,可防止并发测试执行期间的冲突。它通过虚拟网络编排和网络别名实现可靠的服务间通信,并通过针对 HTTP 端点和 TCP 端口的基于轮询的就绪检查确保服务可用性。 该库为关系型、NoSQL 和向量数据库以及消息代理和云服务模拟器提供了专门的模块。其功能范围扩展到容器镜像配置、日志收集和网络状况模拟,以验证系统弹性。 它通过标准化的环境变量和配置文件支持连接到本地和远程 Docker 运行时。
Provisions disposable relational, NoSQL, or vector database instances in Docker to verify data persistence and query logic.
Automated testing to find logic and performance bugs in database systems
Automated testing to find logic bugs in DBMS implementations.
PostgreSQL Unit Testing Suite
Unit testing framework for PostgreSQL.
Regression Testing your SQL queries
Regression testing tool for SQL queries.
DbFit is a database testing framework that supports easy test-driven development of your database code.
Framework for test-driven development of database code.