Commit Graph

13 Commits

Author SHA1 Message Date
didavila
463626da0c feat: add .spec.ts generation for models, mappers, repositories and use-cases
Add 4 new Mustache templates for generating unit test specs:
- model-entity.spec.mustache: tests instantiation, property setting, mock builder
- mapper.spec.mustache: tests per-property DTO→Entity mapping, instanceof, all fields
- api.repository.impl.spec.mustache: tests HTTP method, response mapping, error propagation
- api.use-cases.impl.spec.mustache: tests repository delegation, observable forwarding

Generator changes:
- Add uppercaseHttpMethod to TagOperation for spec HTTP assertions
- Add testValue to TagOperationParam for auto-generated test arguments
- Add resolveTestParamValue utility for primitive/complex type test literals
- Add specs counter to GeneratedCount and GenerationReport
- Wire 4 new renderTemplate calls in schema and tag loops
- Update report generator to count .spec.ts files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-26 10:52:58 +01:00
didavila
99658800ed feat: ensure required fields are marked with '!' in generated model entities 2026-03-25 11:15:37 +01:00
didavila
917cc3b9cf feat: add mock generation for DTOs, models, and repositories with corresponding templates 2026-03-25 11:01:21 +01:00
4aeb108c55 feat: add base url mechanism 2026-03-24 19:15:47 +01:00
didavila
5229a3ad45 refactor: separate return and param imports in Clean Architecture generator 2026-03-24 16:40:34 +01:00
didavila
ca63b85086 refactor: remove unused imports section from model template 2026-03-24 16:31:17 +01:00
didavila
e8c919ee76 feat: collect and render model imports for referenced types in Clean Architecture generation 2026-03-24 16:02:17 +01:00
didavila
82b734bc55 fix: correct import paths in use cases provider and update response mapping in repository implementation 2026-03-24 15:37:34 +01:00
didavila
fc3d95052c fix: update import paths for repository and mapper templates 2026-03-24 15:15:06 +01:00
didavila
d1bcf06439 feat: Add DTO imports processing and update model template for cleaner architecture 2026-03-24 12:20:50 +01:00
didavila
9805a14111 fix: refactor providers to use makeEnvironmentProviders 2026-03-23 16:28:30 +01:00
didavila
4905f84d2c fix: fix template variable wrapping to fit java requirements 2026-03-23 15:06:11 +01:00
Blas Santome Ocampo
5ff88d8cf6 first commit 2026-03-23 09:35:15 +01:00