radius-project / radius

Radius is a cloud-native, portable application platform that makes app development easier for teams building cloud-native apps.
https://radapp.io
Apache License 2.0
1.43k stars 87 forks source link

Review testing strategy for rad init #5134

Open bjoginapally opened 1 year ago

bjoginapally commented 1 year ago

Overview

We should review the testing for rad init and determine if we have sufficient testing for this.

AB#6114

youngbupark commented 1 year ago

I am curious about how to validate the interactive stdin. does bubble tea have the tool we can leverage ?

bjoginapally commented 1 year ago

Yeah me too, that is one reason I added "research"

bjoginapally commented 1 year ago

One option is to have a bubble tea implementation in the testing package. So that we are able to pass in values to mock the behavior. All code will be duplicated except there will be a parameter to pass in a value to return.

bjoginapally commented 1 year ago

But is becomes a maintenance nightmare to keep them in sync (the testing and the cli bubble tea)