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

remove test checking namespace::autoclean against Test::CleanNamespaces #184

Closed
wants to merge 1 commit into from

Conversation

haarg
Copy link
Member

@haarg haarg commented Jan 20, 2024

The test was using namespace::autoclean to clean a namespace, then checking that it was cleaned via Test::CleanNamespaces. This essentially ends up only being a test of the external modules, not anything about Moose itself. Both modules are using Moose to get the list of methods. If that method list was wrong, the test would still pass because the same list is being provided to both modules. And Moose's tests don't need to include tests that are only of external modules.

The test was using namespace::autoclean to clean a namespace, then
checking that it was cleaned via Test::CleanNamespaces. This essentially
ends up only being a test of the external modules, not anything about
Moose itself. Both modules are using Moose to get the list of methods.
If that method list was wrong, the test would still pass because the
same list is being provided to both modules. And Moose's tests don't
need to include tests that are only of external modules.
karenetheridge added a commit that referenced this pull request Jan 21, 2024
  [TESTS]

  - remove test dependency on Test::CleanNamespaces (#184, Graham Knop)
@karenetheridge
Copy link
Member

thanks, shipped in 2.2207.

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