From f6f17de70249944e08d28883fa8e2362f449eebb Mon Sep 17 00:00:00 2001 From: Cervon Wong Date: Fri, 18 Dec 2020 11:12:35 +0800 Subject: [PATCH] Update testing.md to make Windows testing docs clearer I got errors before realizing that I needed to restart my device. --- docs/content/en/docs/testing.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/content/en/docs/testing.md b/docs/content/en/docs/testing.md index 11639a0a..bc96799c 100644 --- a/docs/content/en/docs/testing.md +++ b/docs/content/en/docs/testing.md @@ -53,12 +53,17 @@ class MyDatabase extends _$MyDatabase { We can't distribute an sqlite installation as a pub package (at least not as something that works outside of a Flutter build), so you need to ensure that you have the sqlite3 shared library installed on your -system. On macOS, it's installed by default. +system. + +On macOS, it's installed by default. + On Linux, you can use the `libsqlite3-dev` package on Ubuntu and the `sqlite3` package on Arch (other distros will have similar packages). -On Windows, you can [download sqlite](https://www.sqlite.org/download.html) -and extract `sqlite3.dll` into a folder that's in your `PATH` environment -variable. + +On Windows, you can [download 'Precompiled Binaries for Windows'](https://www.sqlite.org/download.html) +and extract `sqlite3.dll` into a folder that's in your `PATH` +environment variable. Then restart your device to ensure that +all apps will run with this `PATH` change. {{% /alert %}} ## Writing tests @@ -110,4 +115,4 @@ test('stream emits a new user when the name updates', () async { ## Testing migrations Moor can help you generate code for schema migrations. For more details, see -[this guide]({{< relref "Advanced Features/migrations.md#verifying-migrations" >}}). \ No newline at end of file +[this guide]({{< relref "Advanced Features/migrations.md#verifying-migrations" >}}).