Skip to content

Commit 629eeb9

Browse files
committed
add fdc to integration test documentation and update integration test artifact ignores
1 parent 3217d20 commit 629eeb9

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ firebase-admin-*.tgz
2121

2222
docgen/markdown/
2323

24-
# Dataconnect integration test artifacts should not be checked in
24+
# Integration test artifacts should not be checked in
25+
**/database-debug.log
26+
**/firestore-debug.log
2527
test/integration/dataconnect/dataconnect/.dataconnect
26-
test/integration/dataconnect/*.log
28+
**/dataconnect-debug.log
29+
**/pglite-debug.log
30+

CONTRIBUTING.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,19 @@ And then:
150150
'npx mocha \"test/integration/{auth,database,firestore}.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register'
151151
```
152152

153-
Currently, only the Auth, Database, and Firestore test suites work. Some test
154-
cases will be automatically skipped due to lack of emulator support. The section
155-
below covers how to run the full test suite against an actual Firebase project.
153+
Currently, only the Auth, Database, and Firestore test suites work. Some test cases
154+
will be automatically skipped due to lack of emulator support.
155+
156+
You can also run the Data Connect test suite against the emulators using the same command,
157+
but with a config file specific to Data Connect emulator testing:
158+
159+
```bash
160+
firebase emulators:exec \
161+
--project fake-project-id --only dataconnect --config test/integration/dataconnect/firebase.json \
162+
'npx mocha \"test/integration/data-connect.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register'
163+
```
164+
165+
The section below covers how to run the full test suite against an actual Firebase project.
156166

157167
#### Integration Tests with an actual Firebase project
158168

0 commit comments

Comments
 (0)