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
Once everything passes, run `validate_integration.py` for a final structure check before pushing.
135
135
136
+
## Running Tests
137
+
138
+
Unit tests and integration tests are run separately. See the integrations repo's [CONTRIBUTING.md](https://github.com/autohive-ai/autohive-integrations/blob/master/CONTRIBUTING.md#running-tests) for full details.
139
+
140
+
### Unit tests (CI + local)
141
+
142
+
```bash
143
+
# Via the tooling runner (installs deps per-integration, runs with coverage)
144
+
python scripts/run_tests.py my-integration
145
+
146
+
# Or directly via pytest (from the integrations repo root)
147
+
pytest my-integration/
148
+
```
149
+
150
+
### Integration tests (local only)
151
+
152
+
Integration tests (`test_*_integration.py`) call real APIs and are **never** run in CI. They must be invoked by passing the file path explicitly:
Integrations without `test_*_unit.py` files are skipped with a warning. The test infrastructure (`pyproject.toml`, `conftest.py`, `requirements-test.txt`) lives in the integrations repo — see its `CONTRIBUTING.md` for how to write and run tests locally.
201
+
Integrations without `test_*_unit.py` files are skipped with a warning.
202
+
203
+
> **Note:** This script only runs unit tests. Integration tests (`test_*_integration.py`) require real API credentials and are run locally by developers — never in CI. See the integrations repo's `CONTRIBUTING.md` for details.
204
+
205
+
The test infrastructure (`pyproject.toml`, `conftest.py`, `requirements-test.txt`) lives in the integrations repo — see its `CONTRIBUTING.md` for how to write and run tests locally.
202
206
203
207
## Integration Requirements
204
208
@@ -211,7 +215,7 @@ See `INTEGRATION_CHECKLIST.md` for full details.
211
215
- `requirements.txt`- Dependencies (must include `autohive-integrations-sdk`)
0 commit comments