You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
1.[General Hints](#general)
6
6
1.[Development / Editor Setup](#editors)
7
7
1.[Visual Studio Code (vscode)](#vscode)
8
+
1.[Testing][#testing]
8
9
1.[Using Buildkit](#buildkit)
9
10
1.[Local HTTP(S) Caching Proxy](#caching)
10
11
1.[Local S3 Server](#local-s3-server)
@@ -31,6 +32,27 @@ This repo includes VSCode settings that allow for a) editing inside a docker con
31
32
1. Open your docker-diffusers-api folder, you'll get a popup in the bottom right that a dev container environment was detected, click "reload in container"
32
33
1. Look for the "( ) Watch" on status bar and click it so it changes to "( ) XX Coverage"
33
34
35
+
<aname="testing"></a>
36
+
## Testing
37
+
38
+
1.**Unit testing**: exists but is sorely lacking for now. If you use the
39
+
recommended editor setup above, it's probably working already. However:
40
+
41
+
1.**Integation / E2E**: cover most features used in production.
42
+
`pytest -s tests/integration`.
43
+
The `-s` is optional but streams stdout so you can follow along.
44
+
Add also `-k test_name` to test a specific test. E2E tests are LONG but you can
45
+
greatly reduce subsequent run time by following the steps below for a
46
+
[Local HTTP(S) Caching Proxy](#caching) and [Local S3 Server](#local-s3-server).
47
+
48
+
Docker-Diffusers-API follows Semantic Versioning. We follow the
0 commit comments