Test-More / Test2-Harness

Alternative to Test::Harness
Other
23 stars 26 forks source link

Option 'feature-debug-profile' was already defined #223

Open eserte opened 3 years ago

eserte commented 3 years ago

On some of my smokers the test suite fails (seen with Test2-Harness-1.000050, but also with older versions):

PERL_DL_NONLAZY=1 "/usr/perl5.24.1p/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..2
Option 'feature-debug-profile' was already defined (/usr/perl5.24.1p/lib/site_perl/5.24.1/App/Yath/Plugin/Feature.pm line 106) at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/lib/App/Yath.pm line 121.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/scripts/yath line 253.
Option 'feature-debug-profile' was already defined (/usr/perl5.24.1p/lib/site_perl/5.24.1/App/Yath/Plugin/Feature.pm line 106) at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/lib/App/Yath.pm line 121.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/scripts/yath line 253.
yath exited with 65280yath exited with 65280not ok 1 - Passed tests when run by yath (allow fork)
not ok 2 - Passed tests when run by yath (no fork)
*** Error code 255
exodist commented 3 years ago

Hmm, there is no App::Yath::Plugin::Feature (App/Yath/Plugin/Feature.pm) in this or any other dist I know of... Any way you can trace where it is coming from?

I probably need to find a way to limit the tests to NOT look for all random plugins.

exodist commented 3 years ago

ah https://metacpan.org/pod/App::Yath::Plugin::Feature apparently

ylavoie commented 3 years ago

I'll need to look into that, the Feature plugin is mine to run Cucumber files.

ylavoie commented 3 years ago

On some of my smokers the test suite fails (seen with Test2-Harness-1.000050, but also with older versions):

PERL_DL_NONLAZY=1 "/usr/perl5.24.1p/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..2
Option 'feature-debug-profile' was already defined (/usr/perl5.24.1p/lib/site_perl/5.24.1/App/Yath/Plugin/Feature.pm line 106) at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/lib/App/Yath.pm line 121.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/scripts/yath line 253.
Option 'feature-debug-profile' was already defined (/usr/perl5.24.1p/lib/site_perl/5.24.1/App/Yath/Plugin/Feature.pm line 106) at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/lib/App/Yath.pm line 121.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2021042719/Test2-Harness-1.000050-0/scripts/yath line 253.
yath exited with 65280yath exited with 65280not ok 1 - Passed tests when run by yath (allow fork)
not ok 2 - Passed tests when run by yath (no fork)
*** Error code 255

Can you please issue on https://metacpan.org/pod/App::Yath::Plugin::Feature so that I can fix it? Any special setup required?

ylavoie commented 3 years ago

While trying to reproduce with latest master, I had the same errors but they were related to the Cover plugin instead of my feature one. Both plugins were not installed at that moment. Making sure that dependencies are all installed and up to date cleared the problem.