Skip to content

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

@andrew-grechkin

Description

@andrew-grechkin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions