If no tests exist, prompt the user if they want to generate and rerun with tests. Maybe make this a config flag to disable upfront. enabled by default
- Check if tests exist before dbt build
- Prompt to user: Create tests? Save preference
- If Yes -> Auto generate tests and save
- If No -> Save, don't ask again
@sungchun12 this proved to be a little more complicated than initially thought.
For ex. There can be a definition of the model in schema.yml, but without the tests and in that case, new model_name.yml is created which overlaps with the schema.yml.
I've got it working somewhat, but having second thoughts whether adding this complexity makes sense at this stage and whether automatic test creation is key for the v1.
Check out the connected feature branch perhaps at some point and let me know your thoughts, happy to iron it out next week as well if needed
Cool I can take a deeper look next week!