Open bmtcril opened 1 month ago
examples of queries to test: A simple one would be something like the fact_enrollments model, which should just have the most recent enrollment status joined with the user data. The far other end is fact_video_watched_segments which tries to find how many times each 5 second section of a video was watched
As the schema settles, we should add more testing around making sure the calculations performed in this repo are good / don't accidentally break with future updates. I think the following is a good start, but am open to better ideas:
test-seeds
seeds
and load those files as seeds to the appropriate tablesci
so we can explicitly check the outputs of views and MVs but turn it off by defaultdbt test
run, we should also run adbt test --select tag:ci
(I'm not 100% sure this will work with default off) and ensure the additional tests all come out correctlyWhere possible it would be great if the tests can be assumed to work outside of the known-good dataset, in which case we should exclude marking them with the ci tag.