ecamp3 icon indicating copy to clipboard operation
ecamp3 copied to clipboard

Use paratest for parallel test execution

Open manuelmeister opened this issue 1 year ago • 2 comments

To speed up our api tests, I've parallelized them with paratest. It works quite good. Has to be tested, if it actually tests, as the duration seems fishy

manuelmeister avatar Jun 16 '24 12:06 manuelmeister

@usu Yes, but you would need to setup the databases

manuelmeister avatar Jun 16 '24 19:06 manuelmeister

I realized that from https://github.com/ecamp/ecamp3/commit/39410e3045264ed1b731b149591c234f1cec6ac8 (update phpunit from v10.5.20 to v10.5.21, main feature: https://github.com/sebastianbergmann/phpunit/pull/5861) the test only takes 3m 19s, instead of 14m 34s. With my PR it is again reduced to 1m 22s.

manuelmeister avatar Jun 16 '24 19:06 manuelmeister

It seems to be stable, tested it 20 times:

image

BacLuc avatar Jul 07 '24 15:07 BacLuc

@manuelmeister will you finish this change or should i take over?

BacLuc avatar Aug 18 '24 15:08 BacLuc

@BacLuc done

manuelmeister avatar Aug 24 '24 11:08 manuelmeister