This wiki is to help you set up and start using wellested.
To add welltested and required dependencies, run this command:
With Dart:
dart pub add welltested
dart pub add mockito
dart pub add --dev build_runner
With Flutter:
flutter pub add welltested
flutter pub add mockito
flutter pub add --dev build_runner
As of now, Welltested is only available in beta. To get an API Key, please apply for early access at welltested.ai.
Welltested uses dotenv to retrive API Key.
Create a .env file in root of your project, with following KEY:
WELLTESTED_API=YOUR_API_KEY
Once .env file is created you have to add this to your pubspec.yaml as an asset, to make is accessible to the package.
assets:
- .env
To generate test cases add @Welltested() annotation to classes you want to create unit tests.