Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpecDeclare is not working after recent Devel-Declare update #2

Open
andrew-grechkin opened this issue May 8, 2020 · 2 comments
Open

Comments

@andrew-grechkin
Copy link

After recent update of https://metacpan.org/pod/Devel::Declare on cpan to version 0.006022
Test2-Plugin-SpecDeclare is not working any more.

I understand that I probably should complain to the Devel::Declare author and I would do that if Devel::Declare was not marked as DEPRECATED, and I thought maybe this module should not use Devel::Declare at all if Devel::Declare is so bad as it described.

Running simple test with prove t/simple.t where:

use Test2::V0;
use Test2::Tools::Spec;
use Test2::Plugin::SpecDeclare;

tests foo {
	ok(1);
}

done_testing;

is failing with:

t/simple.t .. Useless use of a constant ("tests") in void context at t/simple.t line 7.
Useless use of a constant ("5") in void context at t/simple.t line 7.
Useless use of a constant ("7") in void context at t/simple.t line 7.
Useless use of single ref constructor in void context at t/simple.t line 7.
# No tests run!
# Seeded srand with seed '20200508' from local date.
t/simple.t .. skipped: (no reason given)

running cpanm -nq https://cpan.metacpan.org/authors/id/E/ET/ETHER/Devel-Declare-0.006019.tar.gz fixes the issue

@andk
Copy link

andk commented May 17, 2020

Please allow me to point out, that the change in Devel::Declare happened after Devel::Declare was declared deprecated. What a DeDeDeDeDe, a Delicate Devel Declare Deprecation Declaration:)

@exodist
Copy link
Member

exodist commented May 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants