mirror of https://github.com/pulumi/pulumi.git
14fd3155ce
`ProgramTestOptions` has this option: ```go // PreviewCommandlineFlags specifies flags to add to the `pulumi preview` command line (e.g. "--color=raw") PreviewCommandlineFlags []string ``` However, ProgramTest runs `preview` twice, once before create and then after refresh. The second run ignores `PreviewCommandlineFlags` which I assume was an oversight. This PR fixes that. The concrete use case is that I was working on a test where the second preview run failed but it didn't tell me why; just "_no changes were expected but changes were proposed_". With this PR I was able to add `UpdateCommandlineFlags: []string{"--diff"}` to my test and saw the property that changed unexpectedly. |
||
---|---|---|
.. | ||
command.go | ||
doc.go | ||
program.go | ||
program_test.go | ||
pulumi.go | ||
s3reporter.go | ||
util.go |