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

TCM roles are not handled correctly when there are tags to exclude #106

Open
ichesnokov opened this issue Aug 28, 2020 · 1 comment
Open

Comments

@ichesnokov
Copy link

ichesnokov commented Aug 28, 2020

When tags and TCM roles are used, the following exception is issued by the script:

$ prove -vm tcm.t 
tcm.t .. 
1..1
not ok 1 - TestsFor::SomeClass {
    # TestsFor::SomeClass::Role1|TestsFor::SomeClass::Role2 is not a module name at /Users/ichesnokov/.perlbrew/libs/perl-5.30.1@test/lib/perl5/darwin-2level/Class/MOP/Package.pm line 218.
    1..0
}

See the attached code for an example.
tcm-case.zip

@ichesnokov
Copy link
Author

It seems like Test::Class::Moose::AttributeRegistry->_superclass_tags incorrectly determines $super_test_class name as TestsFor::SomeClass::Role1|TestsFor::SomeClass::Role2.

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

No branches or pull requests

1 participant