Sqflite Common Ffi Testing

Use when writing or fixing unit tests, widget tests or CI runs for code that uses sqflite (Dart VM or Flutter, no device or emulator) with package:sqflite_common_ffi: sqfliteFfiInit in main or setUpAll, opening inMemoryDatabasePath with databaseFactoryFfi, replacing the global databaseFactory so existing openDatabase code runs in flutter test, databaseFactoryFfiNoIsolate for testWidgets, @TestOn('vm'), temporary database files and deleteDatabase, asserting on DatabaseException.

tekartik Updated

File contents

tekartik/sqflite commit 8aeb24a6f0

Frequently asked questions

npx get-skill add tekartik/sqflite-common-ffi-testing