Skip to content

Update run_tests.py - #1901

Merged
peterjc merged 6 commits into
biopython:masterfrom
rwst:run_test
Jan 21, 2019
Merged

peterjc merged 6 commits into
biopython:masterfrom
rwst:run_test

Conversation

@rwst

@rwst rwst commented Jan 19, 2019

Copy link
Copy Markdown
Contributor
  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 style
    checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@codecov

codecov Bot commented Jan 20, 2019

Copy link
Copy Markdown

Codecov Report

Merging #1901 into master will decrease coverage by 1.99%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1901     +/-   ##
=========================================
- Coverage    85.5%   83.51%     -2%     
=========================================
  Files         303      294      -9     
  Lines       49464    47194   -2270     
=========================================
- Hits        42294    39412   -2882     
- Misses       7170     7782    +612
Impacted Files Coverage Δ
Bio/Phylo/CDAOIO.py 5.42% <0%> (-80.1%) ⬇️
Bio/Graphics/__init__.py 25% <0%> (-58.34%) ⬇️
Bio/Phylo/CDAO.py 42.85% <0%> (-57.15%) ⬇️
Bio/_py3k/__init__.py 38.09% <0%> (-38.1%) ⬇️
Bio/PDB/mmtf/__init__.py 72.22% <0%> (-16.67%) ⬇️
BioSQL/BioSeqDatabase.py 65.92% <0%> (-11.7%) ⬇️
Bio/Phylo/_cdao_owl.py 88.88% <0%> (-11.12%) ⬇️
BioSQL/DBUtils.py 64.38% <0%> (-10.96%) ⬇️
Bio/Phylo/_utils.py 57.37% <0%> (-7.79%) ⬇️
Bio/KEGG/KGML/KGML_pathway.py 72.08% <0%> (-7.05%) ⬇️
... and 55 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5cee6c6...9252495. Read the comment docs.

@codecov

codecov Bot commented Jan 20, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1901 into master will decrease coverage by 0.53%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1901      +/-   ##
==========================================
- Coverage    85.5%   84.97%   -0.54%     
==========================================
  Files         303      310       +7     
  Lines       49464    49907     +443     
==========================================
+ Hits        42294    42408     +114     
- Misses       7170     7499     +329
Impacted Files Coverage Δ
Bio/NMR/NOEtools.py 15.15% <0%> (ø)
Bio/ExPASy/ScanProsite.py 28.57% <0%> (ø)
Bio/Wise/dnal.py 34.66% <0%> (ø)
Bio/Index.py 31.64% <0%> (ø)
Bio/PDB/PSEA.py 18.51% <0%> (ø)
Bio/PopGen/GenePop/LargeFileParser.py 10.9% <0%> (ø)
Bio/Blast/ParseBlastTable.py 25% <0%> (ø)
Bio/phenotype/pm_fitting.py 87.71% <0%> (+5.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5cee6c6...7dd667d. Read the comment docs.

@rwst

rwst commented Jan 20, 2019

Copy link
Copy Markdown
Contributor Author

I would be grateful for a squash after all this.

@peterjc

peterjc commented Jan 21, 2019

Copy link
Copy Markdown
Member

I agree a squash commit would be sensible here.

Were we really skipping that many doctests? Wow. Perhaps rather a positive list like this, we can switch to testing them all by default and listing modules to exclude from doctests.

@peterjc peterjc mentioned this pull request Jan 21, 2019
34 of 36 tasks
@rwst

rwst commented Jan 21, 2019

Copy link
Copy Markdown
Contributor Author

https://stackoverflow.com/questions/42340772/how-can-i-integrate-doctests-with-unittests-test-discovery

Python is not my primary language so I can't recommend one of these solutions. Perhaps we can implement exclusion via doctest.DocTestSuite in this PR and you open a ticket for a different implementation using one of the newer tools mentioned in that link. Agree?

@peterjc

peterjc commented Jan 21, 2019

Copy link
Copy Markdown
Member

I meant at some point we'll have increased DOCTEST_MODULES to cover more than half the modules with working doctests in Biopython (very long include or white list), at which point it would be simpler to have a shorter list of excluded modules (aka a black list).

Handling that as a separate issue/pull request make sense.

@peterjc

peterjc commented Jan 21, 2019

Copy link
Copy Markdown
Member

In answer to my earlier question, no - not all of the modules being added to DOCTEST_MODULES here actually have any doctests. e.g. Bio.AlignIO.MafIO has none. Including it here is harmless.

However, others do, like Bio.AlignIO.FastaIO and Bio.AlignIO.MauveIO (although the later is not currently included here?)

@rwst

rwst commented Jan 21, 2019

Copy link
Copy Markdown
Contributor Author

MauveIO is one of the failing ones (#1902). An obstacle to merging this PR would be that other already tested but unmerged PRs might introduce failing doctests.

@peterjc

peterjc commented Jan 21, 2019

Copy link
Copy Markdown
Member

Does that mean the list on #1902 is the only failures (plus special cases handled already like Python 3 specific)? That's much better than I thought.

@rwst

rwst commented Jan 21, 2019 •

Copy link
Copy Markdown
Contributor Author

Yes the #1902 list and the list in run_tests should add to a list of modules (or at least of modules with doctests).

@peterjc
peterjc merged commit cce3e21 into biopython:master Jan 21, 2019
@rwst

rwst commented Jan 21, 2019

Copy link
Copy Markdown
Contributor Author

Thanks.

@peterjc

peterjc commented Jan 21, 2019

Copy link
Copy Markdown
Member

Thank you - and hopefully my comments on #1902 make sense too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants