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

Add log codes for errors, warnings, info, successes, and debug messages #873

Closed plocket closed 5 months ago

plocket commented 5 months ago

Reasons

Basically, each log will have something that is consistent and distinct about it and that gives advantages:

  1. It can make tests more robust and maintainable. Instead of checking for the text of the log (which we change over time to increase clarity), our internal tests can check for the code. We decrease the amount of times we need to update tests.
  2. It can make logs easier to document for the same reason.
  3. It can make communication with users easier. They have a piece of information that is very clear and specific to look up in the documentation or to pass on to us.

Details

Supplementary tools

Additionally, it's hard to keep track of what new code to add next, so include a way to:

Add these to our automated internal tests to catch mistakes.