Subject: | Misfiring AUTHOR_TESTING/RELEASE_TESTING warning in xt tests |
If you run these tests without AUTHOR_TESTING or RELEASE_TESTING set, they will issue a warning "These tests should not be running unless AUTHOR_TESTING=1 and/or RELEASE_TESTING=1!". There is also code to skip the warning for xt tests, but it doesn't work correctly.
It checks ((caller)[0]->isa(__PACKAGE__) and (caller(1))[1] =~ m{^\./xt}). A better regex would be m{^(?:\.[/\\])?xt\b}. Also, this only work if called through the import method. If an xt test calls kwalitee_ok directly, it will always warn.