Skip to content

Skip tests generated by plugins (like pep8) for discovery command. - #8242

Merged
Eric Snow (ericsnowcurrently) merged 3 commits into
microsoft:masterfrom
zztalker:pytest-pep8
Nov 6, 2019
Merged

Eric Snow (ericsnowcurrently) merged 3 commits into
microsoft:masterfrom
zztalker:pytest-pep8

Conversation

@zztalker

@zztalker Pavel Zaikin (zztalker) commented Oct 28, 2019 •

Copy link
Copy Markdown

To do not fail on discovery command and do not track their results.

For #7287

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Appropriate comments and documentation strings in the code
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • The wiki is updated with any design decisions/details.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Oct 28, 2019 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@codecov-io

Codecov (codecov-io) commented Oct 28, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #8242 into master will increase coverage by 0.32%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8242      +/-   ##
==========================================
+ Coverage   59.04%   59.37%   +0.32%     
==========================================
  Files         509      509              
  Lines       23299    23299              
  Branches     3758     3763       +5     
==========================================
+ Hits        13758    13833      +75     
+ Misses       8642     8567      -75     
  Partials      899      899
Impacted Files Coverage Δ
src/client/language/characters.ts 33.33% <0%> (+2.56%) ⬆️
src/client/common/utils/version.ts 81.48% <0%> (+3.7%) ⬆️
src/client/providers/providerUtilities.ts 88.88% <0%> (+5.55%) ⬆️
src/client/datascience/cellFactory.ts 70.51% <0%> (+12.82%) ⬆️
src/client/api.ts 92.85% <0%> (+14.28%) ⬆️
src/client/common/utils/icons.ts 100% <0%> (+16.66%) ⬆️
...cience/jupyter/jupyterDebuggerNotInstalledError.ts 80% <0%> (+20%) ⬆️
src/client/formatters/serviceRegistry.ts 100% <0%> (+25%) ⬆️
...ience/jupyter/jupyterDebuggerRemoteNotSupported.ts 100% <0%> (+25%) ⬆️
...t/datascience/jupyter/jupyterDataRateLimitError.ts 100% <0%> (+33.33%) ⬆️
... and 2 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 ea0dc14...2f776cd. Read the comment docs.

@karthiknadig

Copy link
Copy Markdown
Member

The changes look good, might need a rebase to master to get around the test failures.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with a mild caution)

Comment thread pythonFiles/testing_tools/adapter/pytest/_pytest_item.py
To do not fail on discovery command and do not track their results.
@ericsnowcurrently

Copy link
Copy Markdown

FWIW, I am fairly sure that the old code (parsing the pytest CLI output) used to ignore plugin-generated nodes. If it matters then we can investigate in #8425.

@lock lock Bot locked as resolved and limited conversation to collaborators Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants