-
Notifications
You must be signed in to change notification settings - Fork 240
Bring back PSES tests #1190
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
Bring back PSES tests #1190
Conversation
|
|
||
| [Fact] | ||
| [Trait("Category", "Symbols")] | ||
| [Fact(Skip = "TODO Fix this test. A possible bug in PSES product code.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of scope.
| [Fact] | ||
| public async Task LanguageServiceFindsReferencesOnCommandWithAlias() | ||
| [Trait("Category", "Symbols")] | ||
| [Fact(Skip = "TODO Fix this test. A possible bug in PSES product code.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of scope.
| [Fact] | ||
| public async Task LanguageServiceFindsReferencesOnAlias() | ||
| [Trait("Category", "Symbols")] | ||
| [Fact(Skip = "TODO Fix this test. A possible bug in PSES product code.")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of scope.
rjmholt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but merging this will mean rebasing the API PR
db0615f to
119e220
Compare
|
Issues
======
+ Solved 59
- Added 2
Complexity increasing per file
==============================
- src/PowerShellEditorServices/Services/TextDocument/FoldingReference.cs 3
Complexity decreasing per file
==============================
+ test/PowerShellEditorServices.Test/Extensions/ExtensionServiceTests.cs -1
+ test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs -2
Clones added
============
- test/PowerShellEditorServices.Test/Language/LanguageServiceTests.cs 2
Clones removed
==============
+ test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs -53
See the complete overview on Codacy |
| // // Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
| // // | ||
|
|
||
| // using Microsoft.PowerShell.EditorServices.Utility; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Remove this commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope. See TODO at the top of the file.
| // // Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
| // // | ||
|
|
||
| // using Microsoft.Extensions.Logging.Abstractions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Remove this commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope. See TODO at the top of the file.
This brings back the tests from
PowerShellEditorServices.Test. We get a total of 157 tests coming in (with 3 skipped that I commented on).I think there's opportunity for some refactoring later:
LanguageServiceTests.csshould be broken down into the service tests that it's testingHere are the details:
Tests that work:
test/PowerShellEditorServices.Test/Console/ChoicePromptHandlerTests.cstest/PowerShellEditorServices.Test/Language/LanguageServiceTests.cstest/PowerShellEditorServices.Test/Language/TokenOperationsTests.cstest/PowerShellEditorServices.Test/Session/PathEscapingTests.cstest/PowerShellEditorServices.Test/Session/PowerShellContextTests.cstest/PowerShellEditorServices.Test/Session/ScriptFileTests.cstest/PowerShellEditorServices.Test/Session/WorkspaceTests.cstest/PowerShellEditorServices.Test/Utility/AsyncLockTests.cstest/PowerShellEditorServices.Test/Utility/AsyncQueueTests.cstest/PowerShellEditorServices.Test/Console/InputPromptHandlerTests.csTests that don't work that I'm calling out of scope:
test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cstest/PowerShellEditorServices.Test/Extensions/ExtensionServiceTests.csTests that no longer apply in their current form:
test/PowerShellEditorServices.Test/Utility/AsyncDebouncerTests.cstest/PowerShellEditorServices.Test/Utility/ExecutionTimerTests.cstest/PowerShellEditorServices.Test/Utility/LoggerTests.cstest/PowerShellEditorServices.Test/Utility/ObjectPoolTests.cstest/PowerShellEditorServices.Test/Console/ConsoleServiceTests.cs