Skip to content

Commit fd04e5d

Browse files
committed
feat: local data persistence setup
Refs: #41
1 parent f15a758 commit fd04e5d

File tree

120 files changed

+29340
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+29340
-268
lines changed

.github/workflows/test-setup.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
permissions: none
21
name: Test Setup
32

43
on:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"enabled": true,
3+
"name": "Unit Test Generator",
4+
"description": "Automatically writes unit tests for new or edited implementations in the FinTrack solution",
5+
"version": "1",
6+
"when": {
7+
"type": "fileEdited",
8+
"patterns": [
9+
"src/frontend/src/**/*.cs",
10+
"!src/frontend/tests/**/*.cs",
11+
"!**/*Test*.cs",
12+
"!**/*Tests.cs"
13+
]
14+
},
15+
"then": {
16+
"type": "askAgent",
17+
"prompt": "A C# implementation file has been created or modified. Please analyze the code and generate comprehensive unit tests for it. Follow these guidelines:\n\n1. Create tests in the appropriate test project (FinTrack.Tests.Unit for unit tests)\n2. Use xUnit testing framework with appropriate assertions\n3. Test all public methods and properties\n4. Include edge cases, error conditions, and boundary value testing\n5. Mock dependencies using Moq framework where appropriate\n6. Follow AAA pattern (Arrange, Act, Assert)\n7. Use descriptive test method names that explain what is being tested\n8. Ensure tests are isolated and don't depend on external resources\n9. For ViewModels, test command execution and property change notifications\n10. For Services, test business logic and error handling\n11. For Repositories, test CRUD operations and query logic\n\nGenerate the complete test file with proper namespace, using statements, and test class structure. Include setup methods for common test data if needed."
18+
}
19+
}

0 commit comments

Comments
 (0)