-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
plone.distribution tests are not found in coredev (all pytest tests?) #978
Comments
I see a few options:
The lowest effort is the first one, the hardest is the last one, but maybe the middle option might be the path forward? It complicates the test setup yet-a-bit-more, but we are already splitting the test suite with Robot tests anyway, not to mention Volto that is not tested at all on any package that triggers a jenkins job run, though it has been like that since the beginning and no one seem to be complaining about it anyway 😓 |
For the moment the first option is fine: do not use pytest in core, meaning: Products.CMFPlone or anything below it. It is fine for core add-ons, so the packages like We can look into running pytest tests separately, the second option. That may involve installing everything with pip instead of buildout for this part. But then first we make sure that something like |
@mauritsvanrees I did an experiment adding
Personally I think we should:
|
With current buildout.coredev branch 6.1:
Problem 1: where are the tests?
In
bin/test
I see:Problem: this egg does not contain the tests.. If we want to be able to test all packages in combination, the Python distributions (source dist, wheel) must include the tests. And this can be tricky because the
tests
directory is in the top level folder instead of insrc/plone/distribution/tests
.AFAIK this top level
tests
directory is recommended forpytest
and it can simplify test/tox setup in the package. Is that right? If so, we would want this to work.Actually, the source distribution does contain the tests, but the wheel not. This should be solvable, but it involves diving into how to specify data files. And that page says at the bottom:
My conclusion: having a top level
tests
directory makes it hard to run the tests of all packages combined, like we do now inbuildout.coredev
.Problem 2: zope-testrunner versus pytest
Let's see if it does work when we use a checkout of
plone.distribution
. Thebin/test
file then contains this:This obviously does not find any tests, because they are in
.../6.1/src/plone.distribution/tests
, which is just outside the test path.Fine, let's edit the file:
Still:
Here it seems the problem is that the zope testrunner does not find any pytest tests.
Maybe installing with pip/mxdev helps, see the readme? Not immediately:
So: we have some rethinking to do on our test setup.
The text was updated successfully, but these errors were encountered: