mogen_integration_tests 1.1.2
mogen_integration_tests: ^1.1.2 copied to clipboard
Scans datasource GET endpoints and auto-generates integration test scaffolding.
1.1.2 #
FIXES #
- Migrated to the analyzer 13/14 AST API (
DefaultFormalParameterandSimpleFormalParameterwere removed upstream in analyzer 13.0.0). - The
analyzerconstraint is now>=13.0.0 <15.0.0, which supports the latest stable release; this requires Dart SDK 3.11 or newer.
1.1.0 #
FIXES #
- Generated
dio_helper.dartno longer references app-specific files (app_env.dart,api_constants.dart,app_logger.dart); it is now a self-contained template that compiles in any project. - Generated tests import
package:test/test.dartinstead ofpackage:flutter_test/flutter_test.dart, matching the docs and supporting pure Dart projects. DioExceptionType.connectionTimeoutnow fails the generated test (an unreachable server often times out instead of raising a connection error).- Test file names include the endpoint group (e.g.
users_list_integration_test.dart), so endpoints with the same trailing path segment no longer overwrite each other; remaining collisions are disambiguated with the method name. - Constructor calls are generated from the actual constructor signature (named
dioparameters and extra required parameters are handled) instead of assumingClassName(dio). - Only required method parameters are filled;
double/numdefaults added; a warning is emitted whennullis generated for a non-nullable type. get()calls on targets likeaudio/radioare no longer mistaken for Dio calls.- Files outside
lib/now produce an error instead of a brokenpackage:import.
ADJUSTMENTS #
- Skipped files and non-literal endpoint paths are reported in
--verbosemode instead of being silently ignored. - The
dio_helper.darttemplate is only created when at least one test is generated. - Removed unused
dioandglobdependencies; movedlintsto dev_dependencies.