File tree 1 file changed +26
-0
lines changed 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,32 @@ To install on a locally developed app:
21
21
path : <your-path-to-the-local-supabase-flutter-repo>/packages/supabase_flutter
22
22
` ` `
23
23
24
+ ## Testing
25
+
26
+ The tests for the packages ` postgrest`, `gotrue` and `storage_client` need some Supabase services running.
27
+ To run these tests locally, you need to have the `docker` cli with `docker-compose` installed.
28
+
29
+ The needed configuration for starting the services are in the `infra` directory.
30
+
31
+ To start the services change working directory to `infa/<package>` and run the following command :
32
+
33
+ ` ` ` bash
34
+ docker compose up -d
35
+ ` ` `
36
+
37
+ Run the Dart tests within the package directory in `packages/<package>` with the following command :
38
+ The `-j 1` flag runs the tests not concurrently, which works better since the tests are running against the same services.
39
+
40
+ ` ` ` bash
41
+ dart test -j 1
42
+ ` ` `
43
+
44
+ To stop the services run the following command in the `infra/<package>` directory :
45
+
46
+ ` ` ` bash
47
+ docker compose down
48
+ ` ` `
49
+
24
50
# # Contributing
25
51
26
52
- Fork the repo on [GitHub](https://github.com/supabase/supabase-flutter)
You can’t perform that action at this time.
0 commit comments