mogen_integration_tests 1.1.2 copy "mogen_integration_tests: ^1.1.2" to clipboard
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 (DefaultFormalParameter and SimpleFormalParameter were removed upstream in analyzer 13.0.0).
  • The analyzer constraint is now >=13.0.0 <15.0.0, which supports the latest stable release; this requires Dart SDK 3.11 or newer.

1.1.1 #

FIXES #

  • Depedencies

1.1.0 #

FIXES #

  • Generated dio_helper.dart no 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.dart instead of package:flutter_test/flutter_test.dart, matching the docs and supporting pure Dart projects.
  • DioExceptionType.connectionTimeout now 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 dio parameters and extra required parameters are handled) instead of assuming ClassName(dio).
  • Only required method parameters are filled; double/num defaults added; a warning is emitted when null is generated for a non-nullable type.
  • get() calls on targets like audio/radio are no longer mistaken for Dio calls.
  • Files outside lib/ now produce an error instead of a broken package: import.

ADJUSTMENTS #

  • Skipped files and non-literal endpoint paths are reported in --verbose mode instead of being silently ignored.
  • The dio_helper.dart template is only created when at least one test is generated.
  • Removed unused dio and glob dependencies; moved lints to dev_dependencies.
1
likes
160
points
245
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Scans datasource GET endpoints and auto-generates integration test scaffolding.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analyzer, args, dart_style, path, yaml

More

Packages that depend on mogen_integration_tests