flutter_test_gen_ai 0.2.1 copy "flutter_test_gen_ai: ^0.2.1" to clipboard
flutter_test_gen_ai: ^0.2.1 copied to clipboard

An LLM-based test generation tool that generates Dart test cases for uncovered code using Google Gemini to improve code coverage.

example/example.dart

void main() {
  print('=== Flutter AI Test Generator Example ===');
  print('This package is a CLI tool and is run from the terminal.');
  print('');
  print('To run the test generator on your project, execute:');
  print('  dart run flutter_test_gen_ai --api-key YOUR_GEMINI_API_KEY');
  print('');
  print('Common CLI Options:');
  print(
    '  --target-files          Comma-separated list of target files to analyze',
  );
  print(
    '  --effective-tests-only  Discard tests that do not increase coverage',
  );
  print('  --generate-report       Generate a visual coverage Mermaid report');
  print('');
  print('Check out the complete sample applications in this directory:');
  print('  - example/tic_tac_toe: A pure Dart console application');
  print('  - example/todo_app: A Flutter state management (Bloc) application');
}
0
likes
0
points
57
downloads

Publisher

unverified uploader

Weekly Downloads

An LLM-based test generation tool that generates Dart test cases for uncovered code using Google Gemini to improve code coverage.

Repository (GitHub)
View/report issues

Topics

#testing #code-coverage #gemini #llm #automation

License

unknown (license)

Dependencies

analyzer, args, collection, coverage, google_generative_ai, logging, package_config, path, stack_trace, yaml

More

Packages that depend on flutter_test_gen_ai