kvs_testsmith 1.0.1 copy "kvs_testsmith: ^1.0.1" to clipboard
kvs_testsmith: ^1.0.1 copied to clipboard

Automatic Flutter test generation powered by static analysis. Generate unit tests, widget tests, and integration tests by analyzing your Dart code using the Dart Analyzer AST.

Changelog #

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

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.1 - 2026-04-03 #

Improved #

  • CLI Robustness: Fixed issue where the local command could not be found by adding a convenience script
  • Documentation: Updated README with accurate installation and troubleshooting guides
  • Package Distribution: Added .pubignore to exclude development files

1.0.0 - 2026-04-03 #

Added #

  • Project Scanner: Recursively scans lib/ directory for Dart files
    • Ignores generated files (.g.dart, .freezed.dart, .generated.dart)
    • Ignores build/ and .dart_tool/ directories
  • AST Parsing: Lightweight parser using package:analyzer
    • Detects StatelessWidget and StatefulWidget
    • Detects Services, Repositories, Controllers, BLoCs, Cubits
    • Extracts public methods and constructor parameters
  • Widget Test Generation: Generates testWidgets() with pumpWidget() and MaterialApp wrapper
  • Unit Test Generation: Generates group() + test() stubs with AAA pattern
  • Mock Generation: Generates mocktail mock classes
  • Folder Structure Mirroring: Tests mirror the lib/ directory structure
  • CLI Commands:
    • generate — Generate all tests
    • generate --widgets — Generate only widget tests
    • generate --unit — Generate only unit tests
    • generate --only-missing — Skip files with existing tests
    • coverage — Run flutter test --coverage and print summary
    • watch — Watch lib/ for changes and auto-generate tests
  • AI Test Generation: Placeholder for LLM-powered test generation (opt-in)
  • Colored CLI Output: Rich terminal output with success, warning, and error indicators
1
likes
130
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Automatic Flutter test generation powered by static analysis. Generate unit tests, widget tests, and integration tests by analyzing your Dart code using the Dart Analyzer AST.

Repository (GitHub)
View/report issues

Topics

#testing #code-generation #flutter #dart #automation

License

MIT (license)

Dependencies

analyzer, args, code_builder, dart_style, http, io, path, watcher, yaml

More

Packages that depend on kvs_testsmith