welltested 2.2.2 copy "welltested: ^2.2.2" to clipboard
welltested: ^2.2.2 copied to clipboard

discontinued

WelltestedAI is a Testing AI Pilot helping developers add and maintain tests as they code and deliver stable welltested apps to users.

example/lib/main.dart

import 'package:welltested_annotation/welltested_annotation.dart';

@Welltested()
class Auth {
  String? randomStringVariable;
  int? randomIntVariable;
  double? randomDoubleVariable;

  @Testcases(["if email is not email "])
  Future<User> loginWithEmailAndPassword(
      {required String email, required String password}) async {
    User user = User("unknown");
    final currentUserId = user.uid;
    if (currentUserId != "unknown") {
      return User("user already logged in");
    }
    if (email.isEmpty || password.isEmpty) {
      throw Exception("Email or Password can't be empty");
    }
    if (email == "test@test.com" && password == "password") {
      user = User("user logged in app");
    }
    return user;
  }

  Future<void> logoutUser() async {
    //Add Logout Functionality
  }
}

class User {
  final String uid;
  User(this.uid);
}
29
likes
90
points
677
downloads

Publisher

verified publisherwelltested.ai

Weekly Downloads

WelltestedAI is a Testing AI Pilot helping developers add and maintain tests as they code and deliver stable welltested apps to users.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

analysis_server_lib, analyzer, ansi_escapes, args, azure_application_insights, crypto, http, path, source_gen, welltested_annotation, yaml

More

Packages that depend on welltested