Skip to content

Tests: Exclude tests based on compilation flags, not API presence (3.x version) #5071

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

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

mgol
Copy link
Member

@mgol mgol commented Jun 28, 2022

Summary

3.x-stable version of #5046.

Introduces a new test API, includesModule. The method returns whether
a particular module like "ajax" or "deprecated" is included in the current
jQuery build; it handles the slim build as well. The util was created so that
we don't treat presence of particular APIs to decide whether to run a test as
then if we accidentally remove an API, the tests would still not fail.

Fixes gh-5069

Checklist

Sorry, something went wrong.

@mgol mgol added this to the 3.6.1 milestone Jun 28, 2022
@mgol mgol self-assigned this Jun 28, 2022
@mgol mgol changed the base branch from main to 3.x-stable June 28, 2022 10:59
@jquery jquery deleted a comment from linux-foundation-easycla bot Jun 28, 2022
@mgol mgol force-pushed the 3.x-test-includesModule branch from c08b1a2 to 7d36321 Compare June 28, 2022 11:00
@mgol mgol changed the title 3.x test includes module Tests: Exclude tests based on compilation flags, not API presence (3.x version) Jun 28, 2022
@mgol mgol marked this pull request as ready for review June 28, 2022 11:07
@mgol mgol requested a review from timmywil June 28, 2022 11:07
Introduces a new test API, `includesModule`. The method returns whether
a particular module like "ajax" or "deprecated" is included in the current
jQuery build; it handles the slim build as well. The util was created so that
we don't treat presence of particular APIs to decide whether to run a test as
then if we accidentally remove an API, the tests would still not fail.

Fixes jquerygh-5069
Ref jquerygh-5046

(partially cherry picked from commit fae5fee)
@mgol mgol force-pushed the 3.x-test-includesModule branch from 7d36321 to 357a461 Compare June 28, 2022 11:10
@mgol mgol merged commit bc16512 into jquery:3.x-stable Jul 12, 2022
@mgol mgol deleted the 3.x-test-includesModule branch July 12, 2022 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants