Skip to content

Configuration file is not relative to project directory #285

@DaRacci

Description

@DaRacci

When trying to use a PesterConfiguration.psd1 file it is not trying to load from the projects directory but instead from the VSCode install directory.
I have tried messing with the settings including the working directory setting for pester but nothing seems to resolve this besides hard coding the entire path from the root of my drive.

My related settings json is bellow.

{
  "powershell.pester.useLegacyCodeLens": false,
  "pester.suppressCodeLensNotice": true,
  "pester.configurationPath": "tests\\PesterConfiguration.psd1",
  "pester.runTestsInNewProcess": true
}

Image

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