Skip to content

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Feb 12, 2020

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.cs should be broken down into the service tests that it's testing
  • Bring back the commented out tests

Here are the details:
Tests that work:

  • test/PowerShellEditorServices.Test/Console/ChoicePromptHandlerTests.cs
  • test/PowerShellEditorServices.Test/Language/LanguageServiceTests.cs
  • test/PowerShellEditorServices.Test/Language/TokenOperationsTests.cs
  • test/PowerShellEditorServices.Test/Session/PathEscapingTests.cs
  • test/PowerShellEditorServices.Test/Session/PowerShellContextTests.cs
  • test/PowerShellEditorServices.Test/Session/ScriptFileTests.cs
  • test/PowerShellEditorServices.Test/Session/WorkspaceTests.cs
  • test/PowerShellEditorServices.Test/Utility/AsyncLockTests.cs
  • test/PowerShellEditorServices.Test/Utility/AsyncQueueTests.cs
  • test/PowerShellEditorServices.Test/Console/InputPromptHandlerTests.cs

Tests that don't work that I'm calling out of scope:

  • test/PowerShellEditorServices.Test/Debugging/DebugServiceTests.cs
  • test/PowerShellEditorServices.Test/Extensions/ExtensionServiceTests.cs

Tests that no longer apply in their current form:

  • test/PowerShellEditorServices.Test/Utility/AsyncDebouncerTests.cs
  • test/PowerShellEditorServices.Test/Utility/ExecutionTimerTests.cs
  • test/PowerShellEditorServices.Test/Utility/LoggerTests.cs
  • test/PowerShellEditorServices.Test/Utility/ObjectPoolTests.cs
  • test/PowerShellEditorServices.Test/Console/ConsoleServiceTests.cs


[Fact]
[Trait("Category", "Symbols")]
[Fact(Skip = "TODO Fix this test. A possible bug in PSES product code.")]
Copy link
Member Author

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.")]
Copy link
Member Author

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.")]
Copy link
Member Author

Choose a reason for hiding this comment

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

out of scope.

Copy link
Contributor

@rjmholt rjmholt left a 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

@PowerShell PowerShell deleted a comment from rjmholt Feb 18, 2020
@PowerShell PowerShell deleted a comment from rjmholt Feb 18, 2020
@TylerLeonhardt
Copy link
Member Author

Codacy Here is an overview of what got changed by this pull request:

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;
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

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;
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

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.

@TylerLeonhardt TylerLeonhardt merged commit 8e8728b into PowerShell:master Feb 18, 2020
@TylerLeonhardt TylerLeonhardt deleted the bring-back-pses-tests branch February 18, 2020 18:39
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