Conversation
Introduce a lightweight regression testing framework with offline-by-default coverage to reduce feature-change breakage. - Add a new GitHub Actions workflow (`tests.yml`) to run pytest on PRs and pushes to `main` using `uv`. - Document the testing approach in `docs/TESTING.md`, including test layers, principles, and live-test gating. - Update `README.md` with quick-start test commands and explicit opt-in instructions for live provider smoke tests. - Add tests for LLM streaming fallback behavior and guarded live API smoke validation. This establishes deterministic CI checks while keeping real-provider tests optional and local-only.
Add local `.env` auto-loading in `tests/conftest.py` so live-test flags and provider overrides are picked up without manual export steps. Introduce a `--live` pytest option that switches marker selection to `live`, replacing the previous `-o addopts=...` workaround and making live smoke runs simpler and clearer. Update `.env.example`, `README.md`, and `docs/TESTING.md` to document: - explicit opt-in via `FRAMELAB_ENABLE_LIVE_TESTS=1` - optional `TEST_PROVIDER/TEST_MODEL/TEST_BASE_URL/TEST_API_KEY` overrides - the new `uv run pytest --live` command for local live runs
Update `test_analyze_without_media_shows_error` to allow any of several expected validation messages (missing media, API key, or model name) instead of asserting only the missing-media error. This makes the smoke test robust to validation order and differing first-failure paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.