yak(behavior-tests-blogex-rendered-html-components-layout-router-html-0dev): behavior tests: blogex rendered HTML (components, layout, router HTML)

This commit is contained in:
Willem van den Ende
2026-10-28 22:21:23 +00:00
parent cc03cefe8d
commit 44a343ae72
4 changed files with 446 additions and 8 deletions
+8 -8
View File
@@ -56,22 +56,22 @@ defmodule Blogex.MixProject do
# in blogex/). Rule: the threshold is a FLOOR. Raise it as behavior-test yaks
# land; never lower it. A drop means the change (or an exclusion) is wrong.
#
# Measured 2026-10-28, with the test scaffolding below excluded: 78.59% — the
# Measured 2026-10-28, with the test scaffolding below excluded: 99.69% — the
# same via `mix test --cover` and via `mix test --cover --export-coverage
# default` + `mix test.coverage`. Floor is the integer below that.
#
# Excluded: the test scaffolding in `ignore_modules` below. The two registry
# blog doubles (Blogex.Test.AlphaBlog/BetaBlog) are deliberately not listed
# there: they are fully exercised, and excluding them measures 78.06% — the
# 78 floor holds either way.
# there: they are fully exercised, and excluding them measures 99.69% too —
# the 99 floor holds either way.
#
# Everything in lib/blogex counts, and today's gaps are real:
# Blogex.Components and Blogex.Layout are at 0% because the router tests only
# exercise the JSON responses — covering the rendered HTML is its own yak.
# Blogex.Router (72.06%) still has its HTML arms and `match _` uncovered.
# Everything in lib/blogex counts, and one gap is left:
# Blogex.LinkError is at 88.89% (8 of 9 lines). The rendered-HTML behavior
# tests closed the rest: Blogex.Components and Blogex.Layout went from 0% to
# 100%, and Blogex.Router now covers its browser arms and `match _`.
defp test_coverage do
[
summary: [threshold: 78],
summary: [threshold: 99],
ignore_modules: [
Blogex.Test.FakeBlog,
Blogex.Test.PostBuilder,