-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write better tests #8
Comments
I'm adding a note after commits a17609f / 4fe26d1, which were a pair of commits that finalized the basic outline for testing the results of These new commits demonstrate an outline for future tests regarding the results of As a result, I want to include a custom set of sample scripts, that are much shorter and handle a very limit scope and duration. The sample being used currently is a 20 second video with 30 frames per second, which is kind of an expensive video to check. Whereas in the smaller samples, I could have it around 4-5 seconds only having a little bit of logic. In fact, it's likely to be hard-coded in the construction instead of the sample's loop over tactics to discourage stramineous code, since I think that clarity in the sample is critical for a testing environment. I think this approach also has a benefit to the I think that ultimately, the sub-samples should just return a list of the instructions and the metadata object. For the motion_tree tests, it just leaves the metadata object unused, and passes the instructions to I'm leaving this comment on this issue for my own future reference, since it is 23:30, and I'm not writing this right now. And also because I'm putting a fair likelihood on me forgetting this thought process, so I'd like to make a note of it. |
With 8042bb1, I am finally... finally done with the video tests. It was a real headache to reroute the program to work with the |
Okay, I think my coverage is sufficient now. If I decide later that it's not, I'll just re-open this issue. |
My tests for core functionality is... poor. For one thing, I'm not even testing the central function
compile_video()
. This is because I didn't know how to write tests for it. Now that I've switched video processing libraries via #7, I feel more comfortable writing tests relating to video creation using a library that I feel more comfortable sticking with (moviepy was in a state of limbo, so I had no guarantee that it would work in future versions, and if I would have to drop it).I would like to write better, more accurate tests for the entirety of my functionality. I think the tests shouldn't focus on being implemented correctly, but that the result matches expectation, such as:
I think that these tests should be made so I can develop in a red-light-green-light testing fashion, where I center my designing around the tests that I'm making alongside it.
The text was updated successfully, but these errors were encountered: