yak(coverage-floors-re-measure-and-re-record-after-the-behavior-test-yaks-mgr8): coverage floors: re-measure and re-record after the behavior-test yaks
This commit is contained in:
+9
-9
@@ -62,22 +62,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: 99.69% — the
|
||||
# same via `mix test --cover` and via `mix test --cover --export-coverage
|
||||
# Measured 2026-10-29, with the test scaffolding below excluded: 100.00% —
|
||||
# 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 99.69% too —
|
||||
# the 99 floor holds either way.
|
||||
# there: they measure 100.00% too, so counting them costs nothing.
|
||||
#
|
||||
# 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 _`.
|
||||
# Everything in lib/blogex counts, and nothing is uncovered: Blogex.LinkError
|
||||
# was the last gap at 88.89% (8 of 9 lines) until the credo yak's tests closed
|
||||
# it. The rendered-HTML behavior tests took Blogex.Components and Blogex.Layout
|
||||
# from 0% to 100%, and Blogex.Router covers its browser arms and `match _`.
|
||||
# A floor of 100 means every new line needs a test before `make verify` passes.
|
||||
defp test_coverage do
|
||||
[
|
||||
summary: [threshold: 99],
|
||||
summary: [threshold: 100],
|
||||
ignore_modules: [
|
||||
Blogex.Test.FakeBlog,
|
||||
Blogex.Test.PostBuilder,
|
||||
|
||||
Reference in New Issue
Block a user