Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant