Skip to content

Error when running multiple concurrent pester test suites on same machine #94

@sundeep-ssi

Description

@sundeep-ssi

If 2 separate powershell sessions are concurrently running a pester test suite on the same machine with the same account, pester will throw this error when running a test:

Task should be Sucessful(The term temp is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.)

It seems that the 2 sessions are both trying to put dynamically compiled code into the same Temp directory, and so are clobbering each other. This came up b/c we're running pester tests from Jenkins and often doing multiple simultaneous runs of different test suites.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions