# Create Test

> Creates test cases for the specified component, or from context of recent changes.

- Skill: `tomevault-io/create-test` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/create-test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/create-test/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/create-test

---


# Create Test Command

Creates test cases for the specified component.

## Usage

`/create-test [scope]`

- `create-test cas` -> Test Module and DbContext
- `create-test dal masteraccountmapping` -> Test DAL class
- `create-test` -> Infer from context

## Workflow

1. **Identify Scope**: Determine usage (DbContext, DAL, etc.).
2. **Add Comments**: Add `/// <remarks> Tested in: ...` comments to source code.
3. **Create Test File**: In `src/Amplifai.Bifrost.Tests/`.
4. **Follow Patterns**: Use `TestDatabaseFixture`, `TestDatabaseFactory`.

## Test Patterns

### DbContext Tests
- Verify migrations/database creation.
- Verify all DbSets are queryable.
- Verify inserts/updates/constraints.

### DAL Tests
- Verify all CRUD operations.
- Use `TestDatabaseFactory.CreateForDal()`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/tedd) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

