Skip to content
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

[REF] APIv4 - Simplify entity creation in test suite #23432

Merged
merged 1 commit into from
May 11, 2022

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented May 11, 2022

Overview

Makes the APIv4 test suite more efficient and easier to work with.

Before

Over-used and under-utilized sample data in json files, loading entire data set once-per-entity in the conformance test slows that test to a crawl.

Technical Details

Removes the old v3 creation and hardcoded sample data in favor of new createTestRecord and saveTestRecords methods which automatically supply required values and delete records during tearDown.

@civibot
Copy link

civibot bot commented May 11, 2022

(Standard links)

@civibot civibot bot added the master label May 11, 2022
Removes the old v3 creation and hardcoded sample data in favor of
new `createTestRecord` and `saveTestRecords` methods which automatically
handle cleanup during tearDown.
@colemanw colemanw merged commit 5376bfc into civicrm:master May 11, 2022
@colemanw colemanw deleted the api4TestCleanup branch May 11, 2022 15:34
@colemanw
Copy link
Member Author

@eileenmcnaughton looks like this speeds up Jenkins PR test run by about 10 minutes :)

@eileenmcnaughton
Copy link
Contributor

nice!

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.

2 participants