fst icon indicating copy to clipboard operation
fst copied to clipboard

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

Open sungchun12 opened this issue 2 years ago • 3 comments

sungchun12 avatar Mar 22 '23 18:03 sungchun12

  1. Check if tests exist before dbt build
  2. Prompt to user: Create tests? Save preference
  3. If Yes -> Auto generate tests and save
  4. If No -> Save, don't ask again

xtomflo avatar Mar 23 '23 10:03 xtomflo

@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

xtomflo avatar Mar 24 '23 15:03 xtomflo

Cool I can take a deeper look next week!

sungchun12 avatar Mar 24 '23 15:03 sungchun12