Re: [docutils:feature-requests] #81 0.17.1: pytest is failing

Guenter Milde via Docutils-develop <[email protected]>
Newsgroups gmane.text.docutils.devel
Message-ID <[email protected]>
Dear Adam, dear Docutils developers,

an update on the test suite refactoring:

On 2022-11-19, Guenter Milde via Docutils-develop wrote:
> On 2022-11-10, Adam Turner via Docutils-develop wrote:
>
>> With [r9237] the test-suite refactoring project is complete -- using
>> `pytest` and `python -m unittest` now work "out-of-the-box".
>
> Thank you for picking up the large project of modernising and
> "disentangling" the Docutils test suite.
...

>     # ./alltests.py
>     [...]
>     Ran 1739 tests in 5.053s
...
>     #> pytest-3 --quiet .
...
>     369 passed, 2 skipped, 621 warnings in 6.50s
>
> * Only 369 out of 1739 tests reported by "alltests.py" are reported.
>   Is this different counting or does pytest miss more than half of the tests?
>
  * The warnings do not show up when testing with `alltest.py`
>   It seems `pytest` bypasses this and reports anyway??

Fortunately, the report does not stand in the way, so we can leave this as-is.


>     #> python3.9 -m unittest .
...
>     ValueError: Empty module name

I could fix the import errors, now I get::

      Ran 377 tests in 5.045s

377 << 1739, missing coverage or different counting?

>
> The "nose" test framework fails, too::

Fixed but also not all test are found::

   > nosetests3 
   .........................S..........................................
   ----------------------------------------------------------------------
   Ran 68 tests in 0.320s
   
   OK (SKIP=1)


> Running idividual test files
should work now as well (I did not test all of them, though).


Günter



_______________________________________________
Docutils-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-develop

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.