You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is difficult to test tools that create extensive amounts of cloud resources during their execution. One possible way is to do the following:
Isolate all calls to the cloud provider API to a single struct and its impl
Create a mock struct that can issue mock results during tests
Write tests using the mock
This approach has the added benefit of making it simpler to add another cloud provider, since the one singular struct will have all the cloud operations that need to be implemented to add a new cloud provider.
Since this is a really large task this is more of an exploratory issue. The overall goal is to improve test coverage for important commands.
The text was updated successfully, but these errors were encountered:
It is difficult to test tools that create extensive amounts of cloud resources during their execution. One possible way is to do the following:
impl
This approach has the added benefit of making it simpler to add another cloud provider, since the one singular struct will have all the cloud operations that need to be implemented to add a new cloud provider.
Since this is a really large task this is more of an exploratory issue. The overall goal is to improve test coverage for important commands.
The text was updated successfully, but these errors were encountered: