Project

General

Profile

action #73354

idea and RFC: Use Test2::Aggregate

Added by okurz 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2020-10-04
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

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

Acceptance criteria

  • AC1: Tests in CI run faster with Test2::Aggregate (or other benefit)

History

#1 Updated by cdywan 6 months ago

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
  • BEGIN/END blocks apply to other tests

#2 Updated by tinita 6 months ago

Yeah, I think this would only make sense for real unit tests without fork or exec/system calls.

#3 Updated by okurz 6 months ago

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 PDF