Skip to content

Instantly share code, notes, and snippets.

View aachopra's full-sized avatar

Aakanksha Chopra aachopra

  • JOIN
  • Berlin
  • 02:49 (UTC +02:00)
View GitHub Profile
@aachopra
aachopra / gist:496533b1bb1925b9f9f043c35c20a177
Last active January 9, 2026 10:16
Unit Test Generation Prompt for Use Cases
## Context and Objective
You are tasked with generating comprehensive unit tests for a use case following the established testing patterns in this codebase. The tests should follow the Arrange-Act-Assert (AAA) pattern, focus on behavioral testing rather than implementation details, and ensure proper separation between unit tests and integration tests.
## Step 1: Analyze the Use Case
Before writing any tests, thoroughly analyze the use case file:
1. Read the use case implementation file completely to understand:
- What dependencies it has (repositories, services, clients, buses)