Update testing.md to make Windows testing docs clearer

I got errors before realizing that I needed to restart my device.
This commit is contained in:
Cervon Wong 2020-12-18 11:12:35 +08:00 committed by GitHub
parent 1655bcc69f
commit f6f17de702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -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" >}}).
[this guide]({{< relref "Advanced Features/migrations.md#verifying-migrations" >}}).