Skip to content

Test-ScriptLocally script works with incorrect assumptions #849

@AlexanderSehr

Description

@AlexanderSehr

We have quite a few cases where we do not have a classic parameters.json file and the test script fails because it 'by default' expects one. One example is the 'virtualMachines' module:

image

I'd highly recommend to avoid any assumptions of the parameter file and instead optionally offer to either provide an array of parameter file paths, or an array of parameter file names (assuming that the files are in a .parameters folder). This also allows us to get rid of the DeployAllModuleParameterFiles parameter.

The parameter should in general be optional, as it is not needed for the pester tests

Metadata

Metadata

Assignees

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