yak(behavior-tests-blogex-public-api-and-router-plumbing-q1fb): behavior tests: blogex public API and router plumbing

This commit is contained in:
Willem van den Ende
2026-10-28 22:15:02 +00:00
parent c04d8c856c
commit cc03cefe8d
9 changed files with 211 additions and 46 deletions
+11 -7
View File
@@ -56,18 +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-26, with the test scaffolding below excluded: 74.53% — the
# Measured 2026-10-28, with the test scaffolding below excluded: 78.59% — 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 (Blogex.Test.*) only. Fixtures measure the
# tests, not the library. Everything in lib/blogex counts, and today's gaps
# are real: Blogex (the delegating facade), Blogex.Components and
# Blogex.Layout are at 0% because the router tests only exercise the JSON
# responses — moving this floor up is the behavior-test work.
# 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.
#
# 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.
defp test_coverage do
[
summary: [threshold: 74],
summary: [threshold: 78],
ignore_modules: [
Blogex.Test.FakeBlog,
Blogex.Test.PostBuilder,