g_tester 1.0.2
g_tester: ^1.0.2 copied to clipboard
Auto-generate Dart/Flutter unit test files from lib/ structure. Supports both basic test skeletons and AI-powered test generation using Gemini for business logic, services, and utilities.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate g_testerUse it
The package has the following executables:
$ g_tester
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add g_testerWith Flutter:
$ flutter pub add g_testerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
g_tester: ^1.0.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:g_tester/g_tester.dart';