Skip to content

馃 Weird PowerShell Exit after the test has run#1212

Description

@O365-Zende

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

  • Make sure you can reproduce this issue using the latest released version of Maester.
  • Please search the existing issues to see if there has been a similar issue filed.

Describe the bug

I run the same pattern for consistency when testing.

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser
Update-Module Pester
Update-Module -Name 'Maester' -AllowPrerelease
Import-Module Maester
Install-MaesterTests -Path "~\maester-tests"

#------- Connect And Run -------#
Connect-Maester -Service All -Privileged
Invoke-Maester -Path "~\maester-tests" -OutputFolder "~\maester-results"

But lately (last couple of months maybe) the PS window does something weird at the end of the test.
It seems to move all the text on the window to the right.
The test finishes correctly and displays the results.

I don't know for sure this isn't something local to the machine, but it's an Admin only machine (PAWS) and we don't add things to it, software etc.

Let me know if you need me to test things.

To Reproduce

Steps to reproduce the behaviour:

For me
Run Test as above and wait till it exits

Expected behaviour

Expect the PS window to just finish the test and leave the commands on screen, all on the left of the screen

Debug Output

N/A

Module Version

Maester 1.3.87, but has been happening for a while now

Environment Data

Image

Screenshots

Start of test

Image

End of Test

Image

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions