SuffolkLITLab / ALKiln

Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.
https://assemblyline.suffolklitlab.org/docs/alkiln/intro
MIT License
14 stars 4 forks source link

Improve log codes checker, close #920 #923

Closed plocket closed 2 months ago

plocket commented 2 months ago

In this PR, I have:

Reason for this PR

Log codes checking was a bit disjointed. It used a list of deleted log codes and a list of duplicate log codes. It checked for missing codes separately from duplicate or extra codes. It didn't have refinement - like the ability to check that only 2 of a log code was in the code so we would make sure not to add a 3rd one.

This just has a file containing a list of codes and how many of each should exist. It also is able to log the file paths of the appearance of the log code.

It does take a bit longer to run, though. In #920, there's a link to a repl.it that has an 'archive7_diff.sh' file that contains a potentially faster way to do this, though it would leave out the extra information about the file paths.

Links to any solved or related issues

Closes #920

Any manual testing I have done to ensure my PR is working

Lots of these: