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
{{ message }}
This repository was archived by the owner on May 8, 2026. It is now read-only.
This skill documents how to verify local code changes for the Java Firestore SDK. This should be run **every time** you complete a fix or feature and are prepared to push a pull request.
9
+
10
+
## Prerequisites
11
+
12
+
Ensure you have Maven installed and are in the `java-firestore` directory before running commands.
13
+
14
+
---
15
+
16
+
## Step 0: Format the Code
17
+
18
+
Run the formatter to ensure formatting checks pass:
19
+
20
+
```bash
21
+
mvn com.spotify.fmt:fmt-maven-plugin:format
22
+
```
23
+
24
+
---
25
+
26
+
## Step 1: Unit Testing (Isolated then Suite)
27
+
28
+
1.**Identify modified unit tests** in your changes.
29
+
2.**Run specific units only** to test isolated logic regressions:
30
+
```bash
31
+
mvn test -Dtest=MyUnitTest#testMethod
32
+
```
33
+
3. **Run the entire unit test suite** that contains those modified tests if the isolated unit tests pass:
34
+
```bash
35
+
mvn test -Dtest=MyUnitTest
36
+
```
37
+
38
+
---
39
+
40
+
## Step 2: Integration Testing (Isolated then Suite)
41
+
42
+
### 💡 Integration Test Nuances (from `ITBaseTest.java`)
43
+
44
+
When running integration tests, configure your execution using properties or environment variables:
45
+
46
+
- **`FIRESTORE_EDITION`**:
47
+
- `standard` (Default)
48
+
- `enterprise`
49
+
- *Note*: **Pipelines can only be run against `enterprise` editions**, while standard Queries run on both.
50
+
- **`FIRESTORE_DATABASE_ID`**:
51
+
- Enterprise editions usually require a named database (often `enterprise`). Adjust this flag if pointing to specific instances.
52
+
- **`FIRESTORE_TARGET_BACKEND`**:
53
+
- `PROD` (Default)
54
+
- `QA` (points to standard sandboxes)
55
+
- `NIGHTLY` (points to `test-firestore.sandbox.googleapis.com:443`)
0 commit comments