Welltested Docs
v1.x.x
v1.x.x
  • Welltested AI
    • Set up
    • Unit Tests
      • Annotation
      • Generate Tests
      • Save Tests
      • Good to Knows
        • Custom Testcases
        • Regenerate Bad Tests
        • The Batching Rule
    • FAQs
      • Paid Plans
      • Code Privacy
      • Support
    • IDE Assist
      • Commands
      • Code Actions
    • Testability Guidelines
Powered by GitBook
On this page
  • Generate API Key
  • Add package from pub.dev
  • Setup .env file
  1. Welltested AI

Set up

PreviousWelltested AINextUnit Tests

Generate API Key

To get started, first and get an API key.

IDE Assist: You may also directly use to setup the .env file and required dependencies.

Add package from pub.dev

To your pubspec.yaml, add the package:

dependencies:
    welltested: ^1.0.4

or run

dart pub add add welltested

Setup .env file

Create a .env file in root of your project, and add your key received in the email.

WELLTESTED_API=YOUR_API_KEY

We uses dotenv to retrive API Key. Once .env file is created, please declare it as an asset in pubspec.yaml to make is accessible to the package.

assets:
  - .env

That's all, we are good to go!

create an account
welltested
Set API Key