Create Test Command
Creates test cases for the specified component.
Usage
/create-test [scope]
create-test cas-> Test Module and DbContextcreate-test dal masteraccountmapping-> Test DAL classcreate-test-> Infer from context
Workflow
- Identify Scope: Determine usage (DbContext, DAL, etc.).
- Add Comments: Add
/// <remarks> Tested in: ...comments to source code. - Create Test File: In
src/Amplifai.Bifrost.Tests/. - 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 — claim your Tome and manage your conversions.