kvs_testsmith 1.0.1
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
.pubignoreto 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
- Ignores generated files (
- 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()withpumpWidget()andMaterialAppwrapper - Unit Test Generation: Generates
group()+test()stubs with AAA pattern - Mock Generation: Generates
mocktailmock classes - Folder Structure Mirroring: Tests mirror the
lib/directory structure - CLI Commands:
generate— Generate all testsgenerate --widgets— Generate only widget testsgenerate --unit— Generate only unit testsgenerate --only-missing— Skip files with existing testscoverage— Runflutter test --coverageand print summarywatch— Watchlib/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