note
szabgab
Yes. "dependency injection" is how this is called in the case of pytest, maybe it is not a generic term.
You could create your own "fixture" and then you or others could set its name as a parameter.
<p>
I put together an example of <a href="https://github.com/szabgab/perltest/blob/main/t/FixtureDataBase.pm">creating and registering a fixture</a> and then also <a href="https://github.com/szabgab/perltest/blob/main/t/TestWithFixture.pm">use that fixture</a>.
<p>
I would love to see your suggestion for more Perlish way.
11129160
11129194