collective / pytest-plone

Pytest plugin to test Plone addons
GNU General Public License v2.0
3 stars 0 forks source link

Implement plone/meta #7

Closed ericof closed 11 months ago

ericof commented 11 months ago

Fixes #6

ericof commented 11 months ago

@gforcada We need to make an update on plone/meta. It should be possible to override the package name in tox.

https://github.com/plone/meta/blob/main/config/config-package.py#L353

options['package_name'] = self.path.name

This package name is pytest-plone (according to pytest plugin conventions), but imports are always pytest_plone, which creates an issue with coverage reporting.

In here, I manually edited tox.ini

gforcada commented 11 months ago

Oh, indeed, good catch, let's create an issue for it.

I'm a bit overwhelmed with personal/family things right now unfortunately. But please fix it manually whenever you have other instances and do a PR if you have time for it 😉