Skip to content
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

Disable the display of errors messages when rediscovering of tests fail in response to changes to files #1133

Merged
merged 3 commits into from
Mar 22, 2018

Conversation

DonJayamanne
Copy link

Fixes #704

@brettcannon

  • Please review news entry
  • There are no unit tests for this as the code predates the use of IoC framework (i.e. difficult if not impossible to mock for testing).
  • NOTE: We do have some integration tests though, but it won't test this issue.

This pull request:

  • Has a title summarizes what is changing
  • Includes a news entry file
  • Has unit tests & code coverage is not adversely affected (within reason)
  • Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
  • Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)

@codecov
Copy link

codecov bot commented Mar 21, 2018

Codecov Report

Merging #1133 into master will increase coverage by 0.05%.
The diff coverage is 9.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1133      +/-   ##
==========================================
+ Coverage   71.81%   71.86%   +0.05%     
==========================================
  Files         260      260              
  Lines       11898    11898              
  Branches     2112     2112              
==========================================
+ Hits         8545     8551       +6     
+ Misses       3226     3223       -3     
+ Partials      127      124       -3
Impacted Files Coverage Δ
src/client/unittests/display/main.ts 5.88% <0%> (ø) ⬆️
src/client/unittests/main.ts 50.75% <16.66%> (ø) ⬆️
...rc/client/debugger/PythonProcessCallbackHandler.ts 52.96% <0%> (-0.66%) ⬇️
src/client/debugger/PythonProcess.ts 48.75% <0%> (+3.33%) ⬆️

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 287fd8b...d790df1. Read the comment docs.

@DonJayamanne
Copy link
Author

@brettcannon ping

@@ -0,0 +1 @@
Disable the display of errors messages when rediscovering of tests fail in response to changes to files.
Copy link
Member

Choose a reason for hiding this comment

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

"to files, e.g. don't show a message if there's a syntax error in the test code."

const discoveryPromise = testManager.discoverTests(cmdSource, ignoreCache, false, userInitiated);
testResultDisplay.displayDiscoverStatus(discoveryPromise)
testResultDisplay = testResultDisplay ? testResultDisplay : new TestResultDisplay(onDidChange);
const discoveryPromise = testManager.discoverTests(cmdSource, ignoreCache, quietMode, userInitiated);
Copy link
Member

Choose a reason for hiding this comment

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

I don't see a change to this API, so I assume this is what false used to represent?

Copy link
Author

Choose a reason for hiding this comment

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

Yes

@DonJayamanne DonJayamanne merged commit 5416af2 into microsoft:master Mar 22, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 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.

Mute unit test discovery failure when test files are not syntactically correct
2 participants