Skip to content

Migrate integration tests to built JS files #2750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Conversation

JoshMock
Copy link
Member

@JoshMock JoshMock commented Apr 15, 2025

The integration test suite was previously generating and running unit tests in memory, which proves to be a complicated solution. This removes that test runner and replaces it with a test builder that generates JS files full of tap-compatible unit tests, and then runs them.

It also switches from using the yaml-rest-tests directory of the Elasticsearch repo to using the elasticsearch-clients-tests repo, which uses the same YAML format but the test suite is better optimized for testing client against language clients.

Many tests are skipped here, but notes are included as to why. This should run nearly 700 assertions successfully in approximately 3.5 minutes.

Hopefully will allow us to close #2750.

@JoshMock JoshMock marked this pull request as ready for review April 21, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant