idea and RFC: Use Test2::Aggregate
I watched https://www.youtube.com/watch?v=olH41BhFx6M about https://metacpan.org/pod/Test2::Aggregate and found the outlook promising. The approach of aggregate tests could help us to reduce test runtime, find race conditions easier as well as flaky tests, tests that can not be run in parallel and tests impacting each other in a harmful manner
- AC1: Tests in CI run faster with Test2::Aggregate (or other benefit)
Me thinks this was proposed before but met with scepticism:
- Misbehaving tests can break other tests
- Symbols shared one namespace e.g.
subs must have unique names
- The environment is not reset
END blocks apply to other tests
Yeah, I think this would only make sense for real unit tests without fork or exec/system calls.
I would still consider this useful if we can get it to run for a subset of tests. Maybe we want to address all these "misbehaving" tests :)
Also available in: Atom