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
add solutions to possible error which may occur while running tests (#1008)
* add solutions to possible error while running tests
* rectifying a minor mistake
* minor change
* added one more possible error case
* added file path to test scripts for easier navigation
* add explicit place to add the flag
* added placeholder to both the test script
* removed the --project flag error since it has been taken care of in another PR
* remove placeholders
* changed login URLs in Contributing.md
* added extra info for firebase.json issue
* added staging-api login
* correct url for staging
- Every pull request should have associated issue(s) on our [issue tracker](https://github.com/Real-Dev-Squad/website-backend/issues).
156
160
- For any non-trivial fixes and features, unit and integration tests must be added. The PR reviewer should not approve/merge PR(s) that lack these.
157
161
- The PR(s) should be merged only after the CI passes.
162
+
163
+
## Certain issues you may face while running the tests:
164
+
165
+
- Java version is not above 11
166
+
- When we run yarn test, it runs both the unit and integration tests (in this order). So after the unit tests are done, the java process is not killed automatically and when our integration test run it gives error.
167
+
- Error: connect ECONNREFUSED ::1:8081
168
+
169
+
## Possible solutions for above issues (in particular order):
170
+
171
+
- Java version above 11 is needed for firebase tool version >= 11
172
+
- Either manually kill the java process after unit tests are done or run both the tests separately by running the test commands.
173
+
- Add 'host : 0.0.0.0' to both firestore and ui object in firebase.json file if it is not added.
174
+
for more info refer this : https://github.com/Real-Dev-Squad/website-backend/issues/918
0 commit comments