Skip to content

Add tests for *-Item and Get-ChildItem cmdlets #4148

Closed

Description

Add tests for *-Item cmdlets. Missing areas are:

  • Literal paths
  • Error cases
  • AccessDenied Error
  • SessionStateItem and SessionStateContainer error cases
  • Dynamic parameters
  • *-Item for alternate streams
  • Get-ChildItem for file
  • Rename-Item for directory
  • Copy-Item over remote session
  • *-Item for Registry provider
  • *-Item for Function provider
  • Mapped network drive

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.3
OS                             Microsoft Windows 10.0.16204
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    WG-Quality-Test
    on Jun 30, 2017
  2. added this to the milestone on Jun 30, 2017
  3. added
    Up-for-Grabs
    on Jul 3, 2017
  4. jeffbi commented on Jul 17, 2017

    @jeffbi

    Aditya Patwardhan (@adityapatwardhan) What are you looking for regarding tests for "Get-ChildItem for file"? Just that it will return information about the file specified?

    What is the expected behavior if, for example, Get-ChildItem is given a specific, non-globbed file name and also the -Directory parameter? Should it return information about the file anyway or return nothing because the file is not a directory?

    Also, regarding "Rename-Item for directory", do you just mean that the cmdlet can rename a directory, or something more involved than that?

  5. adityapatwardhan commented on Jul 19, 2017

    @adityapatwardhan
    MemberAuthor

    jeffbi We are interested covering the missing code paths at: https://codecov.io/gh/PowerShell/PowerShell/src/master/src/System.Management.Automation/namespaces/FileSystemProvider.cs

    The list above is a summary of what is missing. So some tests might not look very useful, but there is untested code that exists and hence we need to exercise those code paths.

  6. jeffbi commented on Jul 20, 2017

    @jeffbi

    Thanks, Aditya Patwardhan (@adityapatwardhan), I'll look that over.

  7. modified the milestones: , on Oct 12, 2017
  8. SteveL-MSFT commented on Oct 12, 2017

    @SteveL-MSFT
    Member

    I think the remaining items can be pushed to MQ

  9. TravisEz13 commented on Feb 13, 2018

    @TravisEz13
    Member

    Klaudia Algiz (@kalgiz) I recommend looking at the function provider first. Work with Aditya Patwardhan (@adityapatwardhan) to figure out what tests are needed.
    After that, you could work on the remoting tests. Paul Higinbotham (@PaulHigin) would be a good resource for showing you how to use remoting in a test.

  10. 1 remaining item

  11. modified the milestones: , Future on Jun 21, 2018
  12. added
    Area-FileSystem-Provider
    on Nov 30, 2021
  13. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  14. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  15. added
    Resolution-No Activity
    on Nov 16, 2023
  16. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  17. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-FileSystem-ProviderResolution-No ActivityUp-for-GrabsWG-Quality-Test

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions