flutter_test_gen 0.1.0 copy "flutter_test_gen: ^0.1.0" to clipboard
flutter_test_gen: ^0.1.0 copied to clipboard

A CLI tool to automatically generate Flutter and Dart unit tests. Generates structured test templates for classes and functions to speed up Flutter testing.

Changelog #

All notable changes to this project will be documented in this file.

0.1.0 #

Added #

  • Constructor dependency detection and automatic mock generation
  • Parameter dependency detection
  • Automatic mock stubbing for dependency method calls
  • Detection of property accesses and method invocations inside methods
  • Support for async dependency stubs using thenAnswer
  • Automatic generation of verify() calls for mocked dependencies
  • Improved argument-aware mock generation

Improved #

  • Better test template generation
  • Improved return type handling for generated mocks
  • Automatic formatting of generated test files using dart_style
  • Smarter detection of instance vs static methods
  • Improved import resolution for generated tests

Fixed #

  • Duplicate mock stubbing for repeated property access
  • Incorrect mock verification generation
  • Invalid stub generation for dependency methods

0.0.5 #

  • API documentation
  • Updated Dependencies

0.0.4 #

  • Mock Dependencies
  • Added Lint rules
  • Added test
  • CI workflow

0.0.3 #

  • updated dependencies

0.0.2 #

  • Improved README documentation
  • Updated package metadata in pubspec.yaml
  • Added repository and homepage links
  • Improved package discoverability on pub.dev

0.0.1 #

  • Initial release
  • CLI tool to generate unit tests for Flutter/Dart methods
  • Supports classes and top-level functions
  • Generates structured test templates
  • Appends missing tests to existing test files
3
likes
140
points
184
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to automatically generate Flutter and Dart unit tests. Generates structured test templates for classes and functions to speed up Flutter testing.

Homepage
Repository (GitHub)
View/report issues

Topics

#testing #unit-tests #test-generation #cli #code-generation

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, ansi_styles, dart_style, yaml

More

Packages that depend on flutter_test_gen