KeithMukai on Nostr: This is super nerdy, but I've spent most of today so far working on (er, struggling ...
This is super nerdy, but I've spent most of today so far working on (er, struggling with*) the SeedSigner (nprofile…r45v) CI test runner (automated process that sanity checks code updates).
We have a typical test suite for it to run, but our screenshot generator is, in its own way, another set of tests that help reveal unexpected bugs.
It's stupidly simple, but it took HOURS to figure out how to get the CI to merge those two sets of test results into one final "coverage" report (how much of the code is actually tested).
Happy to report: success!
With "Coverage report" cleanly in its own section of the CI checks, we'll be able to easily see if any proposed new code additions are missing appropriate tests. In general, coverage should be ngu only. If coverage decreases, your work on those proposed changes is not yet done.
This is building off of amazing work by dbast (https://github.com/dbast) to get these CI checks integrated in our repo in the first place!
---
*sometimes building in public means also exposing just how bad you are at some things. Oof, the guess-and-check struggle!!
We have a typical test suite for it to run, but our screenshot generator is, in its own way, another set of tests that help reveal unexpected bugs.
It's stupidly simple, but it took HOURS to figure out how to get the CI to merge those two sets of test results into one final "coverage" report (how much of the code is actually tested).
Happy to report: success!
With "Coverage report" cleanly in its own section of the CI checks, we'll be able to easily see if any proposed new code additions are missing appropriate tests. In general, coverage should be ngu only. If coverage decreases, your work on those proposed changes is not yet done.
This is building off of amazing work by dbast (https://github.com/dbast) to get these CI checks integrated in our repo in the first place!
---
*sometimes building in public means also exposing just how bad you are at some things. Oof, the guess-and-check struggle!!