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
At this time, the GitHub actions in this repo fail to run the tests written in this folder. The developer is responsible for locally running and confirming their samples and corresponding tests.
70
+
71
+
### PubSub Emulator
72
+
Some tests in the pubsubTest.php requires PubSub emulator. These tests start with ```$this->requireEnv('PUBSUB_EMULATOR_HOST')```.
73
+
74
+
#### Prerequisites
75
+
- Python
76
+
```
77
+
xcode-select --install
78
+
brew install pyenv
79
+
pyenv install <version>
80
+
python3 --version
81
+
```
82
+
- JDK
83
+
```
84
+
brew install openjdk
85
+
export JAVA_HOME=<path to openjdk folder>
86
+
export PATH="$JAVA_HOME/bin:$PATH"
87
+
```
88
+
89
+
Once python, JDK, and GCloud CLI are installed, follow [these instructions](https://cloud.google.com/pubsub/docs/emulator) to run the emulator.
90
+
91
+
### Setting up environment variables
92
+
Open a new tab in terminal, separate from the one running your emulator.
0 commit comments