GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add tests for *-Item and Get-ChildItem cmdlets · Issue #4148 · PowerShell/PowerShell

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Add tests for *-Item and Get-ChildItem cmdlets#4148
Copy link
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

Description

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan)
opened on Jun 30, 2017
Issue body actions

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

Next
  1. Aditya Patwardhan (adityapatwardhan)
    added
    WG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure
    on Jun 30, 2017
  2. Aditya Patwardhan (adityapatwardhan)
    added this to the This milestone has been deleted milestone on Jun 30, 2017
  3. Aditya Patwardhan (adityapatwardhan)
    added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Jul 3, 2017
  4. jeffbi commented on Jul 17, 2017

    @jeffbi
    jeffbi
    on Jul 17, 2017
    More actions

    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
    Aditya Patwardhan (adityapatwardhan)
    on Jul 19, 2017
    MemberAuthor
    More actions

    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
    jeffbi
    on Jul 20, 2017
    More actions

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

  7. James Truher (JamesWTruher)
    self-assigned this
    on Jul 27, 2017
  8. Aditya Patwardhan (adityapatwardhan)
    added a commit that references this issue on Aug 2, 2017

    Add test coverage for Registry (#4354)

    19fcd43
  9. James Truher (JamesWTruher)
    removed their assignment
    on Oct 9, 2017
  10. Steve Lee (SteveL-MSFT)
    modified the milestones: This milestone has been deleted, This milestone has been deleted on Oct 12, 2017
  11. SteveL-MSFT commented on Oct 12, 2017

    @SteveL-MSFT
    Steve Lee (SteveL-MSFT)
    on Oct 12, 2017
    Member
    More actions

    I think the remaining items can be pushed to MQ

  12. Travis Plunk (TravisEz13)
    assigned
    Klaudia Algiz (kalgiz)
    on Feb 13, 2018
  13. TravisEz13 commented on Feb 13, 2018

    @TravisEz13
    Travis Plunk (TravisEz13)
    on Feb 13, 2018
    Member
    More actions

    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.

  14. 1 remaining item

  15. Steve Lee (SteveL-MSFT)
    modified the milestones: This milestone has been deleted, Future on Jun 21, 2018
  16. Ilya (iSazonov)
    added
    Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem provider
    on Nov 30, 2021
  17. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    microsoft-github-policy-serviceBot
    on Nov 16, 2023 – with Microsoft GitHub Policy Service
    Contributor
    More actions

    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.

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

    @microsoft-github-policy-service
    microsoft-github-policy-serviceBot
    on Nov 16, 2023 – with Microsoft GitHub Policy Service
    Contributor
    More actions

    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.

  19. microsoft-github-policy-service
    added
    Resolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or more
    on Nov 16, 2023
  20. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    microsoft-github-policy-serviceBot
    on Nov 16, 2023 – with Microsoft GitHub Policy Service
    Contributor
    More actions

    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.

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

    @microsoft-github-policy-service
    microsoft-github-policy-serviceBot
    on Nov 23, 2023 – with Microsoft GitHub Policy Service
    Contributor
    More actions

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

  22. microsoft-github-policy-service
    removed this from the Future milestone on Nov 23, 2023
  23. microsoft-github-policy-service
    closed this as completedon Nov 23, 2023
  24. github-project-automation
    added this to Test Coverageon Aug 28, 2024
  25. github-project-automation
    moved this to Done in Test Coverageon Aug 28, 2024
  26. Thatgfsj (Thatgfsj)
    added a commit that references this issue on Aug 6, 2026

    Add test coverage for Registry (PowerShell#4354)

    c3c5f46
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-Providerspecific to the FileSystem providerspecific to the FileSystem providerResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Quality-Testissues in a test or in test infrastructureissues in a test or in test infrastructure

    Type

    No type

    Projects

    • Test Coverage
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.