Maven-publish does't run test

I’m playing around with the plugin maven-publish.
I noticed that neither test or check are run when running gradle publish.
I would think that test and check should always pass before publishing any artefacts.

What could be the reasons not to make publish depend on test and check?