mogen_unit_tests 1.0.0
mogen_unit_tests: ^1.0.0 copied to clipboard
CLI tool that scans lib/features/**/presentation/notifiers/, parses Riverpod AsyncNotifier / Notifier classes, detects repository dependencies, and generates Mocktail-based unit tests with success + e [...]
1.0.0 #
Added #
- Initial release
- Basic Mocktail mock and test generation
- CLI entry point with
--helpand--versionflags - Riverpod
AsyncNotifierandAutoDisposeAsyncNotifiersupport ProviderContainerwith repository provider overrides in generatedsetUp- Detects repository dependencies via
ref.read()andref.watch()calls - Generates
Fake<Type>classes andregisterFallbackValuefor complex parameter types - Matches state classes from
presentation/states/to enrich generated tests --dry-runflag to preview output without writing files--verboseflag for detailed progress logging--rootflag to run from outside the project directory- Validates project structure before running and exits with clear error messages
Changed #
- Rewrote scanner to target
lib/features/**/presentation/notifiers/specifically - Output now mirrors source structure under
test/features/ - Repository stubs scaffolded as comments to avoid broken code on first run