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:
+8
-8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user