I use Selenium webdriver js for automation testing, also I use Jest to run some test in parralell and my tests have this structure:
tests
┣ folder1
┃ ┣ suite1
┃ ┣ suite2
┃ ┣ suite3
┃ ┗ suite4
┣ folder2
┃ ┣ suite1
┃ ┣ suite2
┃ ┣ suite3
┃ ┗ suite4
┣ folder3
┃ ┣ suite1
┃ ┣ suite2
┃ ┗ suite3
I want to run in parallel [folder1, folder2, folder3], but all tests from this each should run in sequentially, if I use --runInBand it will run all suites in sequentially, does'n matter if it is from another folder
For example at the same time I want to start
suite1 from test1 + suite1 from test2 + suite1 from test3
If some suite will finished, it will start next suite from the same folder.
Why? Because if I will run it without --runInBand, it will open a chrome window for each test, and imagine how much RAM it will consume