bashunit icon indicating copy to clipboard operation
bashunit copied to clipboard

Display total processes used at the end

Open Chemaclass opened this issue 1 year ago • 0 comments

Status quo

Right now, when running tests in parallel, each test file will be executed in a different child process.

Expected

When running tests in parallel, display the total parallel processes used.

Tech hint

Possible solutions A: create a global variable and for each runner::call_test_functions & increment it by 1, and later use it B: use the total files used in runner::load_test_files [this is simpler than A] C: figure out how to get the possible max child processes created by the system and save it in a variable

While I would consider C is the most correct one, I think B is the simplest and better approach to do first.


Idea inspired by Pest, eg pest --parallel --processes=10 Screenshot 2024-10-12 at 19 45 25

Chemaclass avatar Oct 12 '24 17:10 Chemaclass