Skip to content

Feature improve integration tests - #38

Merged
MitchellAW merged 3 commits into
mainfrom
feature-improve-integration-tests
Jun 24, 2026
Merged

Feature improve integration tests#38
MitchellAW merged 3 commits into
mainfrom
feature-improve-integration-tests

Conversation

@MitchellAW

@MitchellAW MitchellAW commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Use searched screencaps in integration tests, this allows the tests to take advantage of avoiding rate limits as generating gifs that have been generated previously do not have rate limits.

This reduces integration test times from ~120s to ~20s.

Add an additional integration test for generating a gif with customised subtitle formatting (font, color, size, uppercase/lowercase)

Removing the sleeps from the tests will causes tests to fail with 429 if the gifs are eventually removed, so the HTTP client will need some retrying capability to prevent this in future.

@MitchellAW MitchellAW self-assigned this Jun 24, 2026
@MitchellAW MitchellAW added the tests Issue relates to tests or integration tests label Jun 24, 2026
By using searched screencaps, sleeps can be
removed as regenerating the same gif does not
have a rate limit.

This means integration tests can be reduced from
~120s to ~20s once sleeps are removed.
@MitchellAW
MitchellAW force-pushed the feature-improve-integration-tests branch from 1b6227d to b06e846 Compare June 24, 2026 04:39
@MitchellAW
MitchellAW merged commit be3287a into main Jun 24, 2026
5 checks passed
@MitchellAW
MitchellAW deleted the feature-improve-integration-tests branch June 24, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Issue relates to tests or integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant