Unit tests are usually not performed on Pulumi projects: Pulumi ComponentResources are a more appropriate level to unit test at.
ComponentResources shouldn't be using pulumi.config, they should be constructed with configurable paramaters passed in to their constructors.
Is it feasible to re-design your resources and projects to allow you to inject values into resources, instead of injecting test data into your context
config
?
little-cartoon-10569
08/03/2020, 7:00 AM
If you're using property or integration testing, then you're really running Pulumi, and you shouldn't need to inject anything into your test context
config
. Just have a config for your test project or stack.