Testing and Quality Signals
LibreUni quality is not one test. It is a chain of signals: content reads cleanly, MDX compiles, diagrams render, interactive widgets hydrate, the layout works on mobile and desktop, and the lesson has a clear learning purpose.
Quality Pipeline
Visual Sanity Checks
For diagrams, the key quality question is simple: can a reader understand the structure without fighting the layout? The overlay exists so large diagrams can be inspected without squeezing text into unreadable shapes.
TikZ Rendering Error
The TikZ generation failed during build.
\foreach \x/\label in {0/Content,2/Build,4/Preview,6/Review} {
\draw[rounded corners=4pt, fill=blue!8, draw=blue!60, thick] (\x,0) rectangle +(1.35,0.7);
\node at (\x + 0.675,0.35) {\small \label};
}
\draw[->, thick] (1.35,0.35) -- (2,0.35);
\draw[->, thick] (3.35,0.35) -- (4,0.35);
\draw[->, thick] (5.35,0.35) -- (6,0.35);
\draw[rounded corners=6pt, dashed, draw=green!60!black, thick] (-0.25,-0.25) rectangle (7.6,0.95);
\node[below] at (3.65,-0.25) {\small Every step should produce a useful signal};
Browser Logic Example
The code runner can execute JavaScript snippets too. Use this for small algorithmic demonstrations where Python would be unnecessary.
Python Data Sketch
This example visualizes a fictional quality dashboard. It is intentionally small, but it exercises the same runtime used by scientific and math lessons.
Review Heuristics
Use this checklist when reviewing a new lesson:
- The title and description match the actual content.
- The lesson teaches one coherent idea.
- Diagrams are legible in the page and in the overlay.
- Interactive components have a reason to be there.
- Code samples are short enough to inspect.
- The page builds without generating new errors.
A lesson builds successfully, but one diagram is too dense, the quiz checks trivia instead of the learning goal, and a code sample prints twenty lines of unformatted output.