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

Speedup test check by splitting long specs into smaller one #1384

Open
ShockwaveNN opened this issue Nov 24, 2022 · 0 comments
Open

Speedup test check by splitting long specs into smaller one #1384

ShockwaveNN opened this issue Nov 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@ShockwaveNN
Copy link
Contributor

ShockwaveNN commented Nov 24, 2022

For code like

TestingApiOnlyfficeCom::CommunityServerAPI.parsed_document_entries.each_pair

and

TestingApiOnlyfficeCom::BuilderPage.parsed_document_entries.each_pair do |editor, class_hash|

we can split those on several same-looking specs, but instead of running all the specs in same file - we could run for example only 1/5 in one file and 2/5 in other file, and 3/5 in other file

So there will be 5 files with something like:

TestingApiOnlyfficeCom::CommunityServerAPI.parsed_document_entries.split(2, 5).each_pair

Similar thing already done in testing-documentserver for long specs for the formulas:
https://github.com/ONLYOFFICE-QA/testing-documentserver/blob/fd44559d5b5148926511170be58765ad8728e040/spec/modules/spreadsheets/spreadsheet_editor/formula/check_formula_counting/check_formula_counting_2_spec.rb#L16

@ShockwaveNN ShockwaveNN added the enhancement New feature or request label Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant