crude-functions-testing
CommunityTesting best practices for Crude Functions.
Software Engineering#testing#Migrations#SurrealDB#integration-tests#Crude Functions#TestSetupBuilder#mocking-guidelines
AuthorXkonti
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill documents testing best practices for Crude Functions projects, focusing on real infrastructure tests, parallel test execution, and careful resource cleanup to ensure fast, reliable test suites.
Core Features & Use Cases
- Provides guidance on using TestSetupBuilder to create isolated test environments with real SurrealDB databases, migrations, and multiple services that mirror production.
- Recommends patterns for integration tests, deferred data, and robust cleanup to prevent resource leaks in a shared testing environment.
- Describes test structure, anti-patterns, and strategies for avoiding race conditions in parallel test runs.
Quick Start
To start applying these practices, review TestSetupBuilder usage and the integrationTest wrapper, then run the project's test suite in your environment. Use absolute paths and try-finally blocks to ensure resources are always released.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: crude-functions-testing Download link: https://github.com/Xkonti/crude-functions/archive/main.zip#crude-functions-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.