Project

General

Profile

Actions

action #73354

open

idea and RFC: Use Test2::Aggregate

Added by okurz over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:

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)
Actions #1

Updated by livdywan over 3 years 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
Actions #2

Updated by tinita over 3 years ago

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

Actions #3

Updated by okurz over 3 years 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 :)

Actions

Also available in: Atom PDF