Project

General

Profile

action #133112

Updated by tinita 10 months ago

## Motivation 

 We are using a lot of different test modules in different distributions. 
 * Test::Most 
 * Test::Warnings 
 * Test::Fatal 
 * Test::MockModule 
 * Test::MockObject 
 * OpenQA::Test::TimeLimit 

 The new Test2 suite comes with a lot of builtin stuff: 
 https://metacpan.org/pod/Test2::V0 

 The `yath` tool (alternative to `prove`) It has a builtin timeout functionality: https://metacpan.org/pod/App::Yath#HARNESS-NO-TIMEOUT functionality. 

 https://metacpan.org/pod/Test2::Mock has some interesting features like call tracing. 
 https://metacpan.org/pod/Test2::Tools::AsyncSubtest / https://metacpan.org/pod/Test2::AsyncSubtest makes it easy to run tests asynchronously or in a fork. 

 Also the `is` function already handles deep comparison and even lists all top level mismatches instead of just reporting the first mismatch and then stop. 

 We might want to try out if we can switch to Test2 in one of our tests and see if it makes sense. 
 No need to switch all tests at once. 

 Only downside: The version in Leap 15.5 is quite old (2017!), so we would have to link it in devel:openQA

Back