Skip to content

Speed up tests#127

Open
srebrek wants to merge 3 commits intomainfrom
refactor/speed-up-tests
Open

Speed up tests#127
srebrek wants to merge 3 commits intomainfrom
refactor/speed-up-tests

Conversation

@srebrek
Copy link
Collaborator

@srebrek srebrek commented Mar 23, 2026

Some tests are long and discourage devs to run them as they take 15 min. Many of the tests does not even need runnig the model to test what they want to test so (so many "test"...).

  • Rename integration tests to E2E tests. Those tests are long and need api keys or local inference

  • Add new integration tests project designed for relatively quick tests testing integration between parts of the library with mocked HTTP calls or local model inference so they are deterministic and quick.

  • Use smaller and faster model for E2E tests so it has to be downloaded for the succesful test execution.

  • Add some integration tests.

  • Fix the vision logic (details in the cdbe368 commit)

Currently integration tests cannot run in parallel as the service configuration is global. Take care of it in the next PR.

srebrek added 3 commits March 21, 2026 17:24
Model used in the test is a model that does not implement IVision but can read via OCR. LLM service silently packed the images from OCR source to the IVision source and prevented OCR to work as intended.
- Previous integration tests are moved to E2E test project as they need real api keys or local inference and their duration is long.
- New integration test project holds tests that have mocked HTTP Handlers so we can test integration between modules without time-consuming external dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant