Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix tests in ds/custom_editor branch #10512

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

Merged
merged 4 commits into from
Mar 10, 2020

Conversation

DonJayamanne
Copy link

For #10510

@DonJayamanne DonJayamanne added the no-changelog No news entry required label Mar 10, 2020
customEditorService
.setup(c => c.openEditor(typemoq.It.isAny()))
.returns(async f => {
return registeredProvider.resolveCustomEditor(f, panel.object);
const doc = typemoq.Mock.ofType<CustomDocument>();
Copy link
Author

Choose a reason for hiding this comment

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

This was broken

@@ -8,7 +8,9 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
"--extensionDevelopmentPath=${workspaceFolder}",
Copy link
Author

Choose a reason for hiding this comment

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

Restored running tests against insiders.

@@ -24,4 +24,4 @@ export function getOSType() {
}
}

export const UseCustomEditor = true;
export const UseCustomEditor = { enabled: true };
Copy link
Author

Choose a reason for hiding this comment

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

Are we're supporting both custom and old editors. We need tests for both.
This object allows us to toggle from tests.

Copy link

Choose a reason for hiding this comment

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

Do we need to support both? Once this ships we're not using the old way anymore.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov-io
Copy link

codecov-io commented Mar 10, 2020

Codecov Report

Merging #10512 into ds/custom_editor will increase coverage by 0.03%.
The diff coverage is 25%.

Impacted file tree graph

@@                 Coverage Diff                  @@
##           ds/custom_editor   #10512      +/-   ##
====================================================
+ Coverage              60.8%   60.83%   +0.03%     
====================================================
  Files                   579      579              
  Lines                 31301    31303       +2     
  Branches               4454     4455       +1     
====================================================
+ Hits                  19032    19043      +11     
+ Misses                11308    11293      -15     
- Partials                961      967       +6
Impacted Files Coverage Δ
src/datascience-ui/react-common/constants.ts 0% <0%> (ø) ⬆️
...t/common/insidersBuild/insidersExtensionService.ts 97.18% <33.33%> (-2.82%) ⬇️
src/client/common/utils/platform.ts 64.7% <0%> (-11.77%) ⬇️
src/client/linters/pydocstyle.ts 86.66% <0%> (-2.23%) ⬇️
src/client/datascience/debugLocationTracker.ts 76.56% <0%> (-1.57%) ⬇️
src/client/common/process/proc.ts 14.49% <0%> (-0.73%) ⬇️
...ascience/interactive-ipynb/nativeEditorProvider.ts 55.12% <0%> (+8.33%) ⬆️
src/datascience-ui/react-common/arePathsSame.ts 75% <0%> (+37.5%) ⬆️

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 88dd250...2a9fa29. Read the comment docs.

@DonJayamanne DonJayamanne merged commit 54b99ff into microsoft:ds/custom_editor Mar 10, 2020
@DonJayamanne DonJayamanne deleted the fixTests branch March 10, 2020 22:54
DonJayamanne added a commit that referenced this pull request Mar 17, 2020
* master:
  Fix merge issue
  Move redux logging to a different file (#10605)
  Disable custom editor API (#10604)
  Ensure local host only if connection not available (#10600)
  Delegate management of notebooks (creation and disposing) to I… (#10568)
  Refactor to accommodate upstream VSCode API changes (#10569)
  Use a single notebook beetween multiple native editors (#10514)
  Add support for synchronising edits between two nb editors of… (#10189)
  Fix tests in ds/custom_editor branch (#10512)
  Fix linter
  Reimplement custom editor using new API
@lock lock bot locked as resolved and limited conversation to collaborators Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants