automated_testing_framework_plugin_firestore 5.0.2+14 copy "automated_testing_framework_plugin_firestore: ^5.0.2+14" to clipboard
automated_testing_framework_plugin_firestore: ^5.0.2+14 copied to clipboard

discontinued

Library to use Google's Firestore as a storage mechanism for automated tests and test results.

Table of Contents

automated_testing_framework_plugin_firestore #

Table of Contents #

Introduction #

The first step in the process is to make sure your app is setup and registered with Google's Firestore console and the appropriate files have been added to your application's manifests. For a great guide on this process, see https://firebase.flutter.dev/docs/overview.

In addition to Firestore this also supports Firebase Storage for the screenshots. If you would like to utilize that, follow the Firebase Storage instructions in the previous link.

As a note, the example app is a fully functioning app on Firestore and Firebase Storage, but you must add in your own project. You don't get to use mine at my cost... :)

Quick Start #

In addition to the Firestore and Firebase Storage metadata files, the example also requires a file under assets/login.json that follows this structure:

{
  "username": "username-goes-here",
  "password": "password-goes-here"
}

This is used to log in to Firebase using the email / password mode and is designed to encourage good test behavior by starting with an authenticated mode rather than a "world read / world write" mode that can be dangerous for your data.

Once that file, plus the Firestore metadata files, is provided you should have a working example that can read, write, and report out tests.

Supported Platforms #

This has been tested on Android and iOS. Technically, it should support Web for everything but screenshots, but that has not been tested.

This also expects MacOS support due to Firebase's own docs, but I was unable to create a working example myself. Any help on this front would be very much appreciated! :)

Windows and Linux are not supported by Cloud Firestore at this time so are not supported by this plugin.