Jbays / gymnastics-tracker

full stack app to track my gymnastics progress
0 stars 0 forks source link

Tests for Workout History #12

Open Jbays opened 6 years ago

Jbays commented 6 years ago

To ensure that my workout history is correctly translated, I need to write a bunch of tests.

These will ensure that on X date, I had Y workout!

Otherwise, checking all these workouts by hand is silly. And error-prone.

Jbays commented 6 years ago

I needed a five-way join to translate my workout history from various ids into plain language.

Now I've got the results bundled in json.

Time to write tests! Finally.

Jbays commented 6 years ago

I've written about 63 tests for my first 5 workouts.

The tests helped me discover the first step for mastery_id = 3 was INCORRECT.

Right now, I'm going to write a little more code -- so that all workout history is queried from my database THEN written to a file. It's this file that I'll run workout history tests against.

Jbays commented 6 years ago

14 I have thorough tests written for the first 10 workouts. No fuss. No muss.