Back to Skills

testing

Run and troubleshoot tests for DBHub, including unit tests, integration tests with Testcontainers, and database-specific tests. Use when asked to run tests, fix test failures, debug integration tests, or troubleshoot Docker/database container issues.

1,962stars165forksUpdated 1/23/2026

Security Assessment

Safe(100/100)
Security Score100/100

About testing

The 'testing' skill is designed to streamline the process of running and troubleshooting tests within the DBHub project, particularly for database integration and Docker-related issues. This skill helps developers automate test execution, debug failures, and ensure that different database connectors perform as expected in real-world scenarios. It integrates with tools like Testcontainers to provide accurate testing environments by running actual database instances in Docker containers, which is essential for validating the interactions between DBHub and various databases like PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite.

FAQ

How do I run all tests using this skill?

You can run all tests using the command 'pnpm test'.

What should I check if my Docker containers fail to start?

Check that Docker is running with 'docker ps', verify sufficient disk space with 'docker system df', and manually pull necessary Docker images.

Are there any memory requirements for running integration tests?

Yes, it is recommended to allocate at least 4GB of memory to Docker to ensure smooth integration testing.

Can I test a specific database connector?

Yes, you can test specific database connectors by using commands like 'pnpm test src/connectors/__tests__/postgres.integration.test.ts' for PostgreSQL.

What should I do if SQL Server tests timeout?

Ensure Docker has at least 4GB of memory allocated and consider running SQL Server tests separately due to the longer container startup time.

Install testing

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

bytebase/dbhub