Repository navigation
Releases
Releases · frikit/twirl-spec
v3.3.1
Immutable
release. Only release title and notes can be modified.
Changed
- The build, release and documentation workflows run on
sbt/setup-sbt1.5.16.
The library's code and dependencies are those of 3.3.0.
Full Changelog: v3.3.0...v3.3.1
v3.3.0
Immutable
release. Only release title and notes can be modified.
Changed
- Starts the 3.3 line on the code of 3.2.2. Nothing a service depends on has
changed: the API, behaviour and dependencies are those of 3.2.2.
Full Changelog: v3.2.2...v3.3.0
v3.2.2
Immutable
release. Only release title and notes can be modified.
Changed
- The build, release and documentation workflows run on
actions/setup-java
6.3.0 andsbt/setup-sbt1.5.15. The library's code and dependencies are
those of 3.2.1.
Full Changelog: v3.2.1...v3.2.2
v3.2.1
Immutable
release. Only release title and notes can be modified.
Fixed
- A service that declares no
play.i18n.langshas Play's one default
language.languages, inTwirlSpecandTwirlSuite, was empty there, so a
catalogue aborted its suite. Found by following the new guide on a service
that declares none. i18n-lang-attributeis silent on a fragment, ashtml-langalready was: a
component rendered without a layout has no<html>to declare a language
on, so a catalogued component could never pass it.
Added
- For coding agents, a guide that takes adoption as a
procedure: the facts to collect from a service, the base and rule traits to
choose, one spec per view through the catalogue, what to do when a check
fails and what never to do to make a run green, a definition of done, and a
block of instructions and a skill file to keep in the service. Its examples
are the consumer build's specs, compiled and run in CI. llms.txtat the site's root, an index of every page for tools that read one.ARCHITECTURE.mdin the repository: a map of the modules, where each
behaviour lives, and the constraints the code relies on.AGENTS.mdpoints
to it and names the constraints easiest to break.
Changed
- The consumer service's ScalaTest spec puts its view through
cataloguePage,
as the guide recommends, so CI runs a ScalaTest catalogue on every row. twirl-spec-munitis held to binary compatibility with 3.2.0 by MiMa, like
every other module.
Full Changelog: v3.2.0...v3.2.1
v3.2.0
Immutable
release. Only release title and notes can be modified.
Added
twirl-spec-munit, a tenth module:TwirlSuite, the library for an MUnit
suite.- It has
TwirlSpec's shared application,inject, languages, rendering
and the expectation DSL, and mixes in the same rule traits. - Its
catalogueandcataloguePagegive a test for each check, named and
tagged as in ScalaTest, with a check a fixture cancels or leaves pending
skipped. assertDisplays,assertMeetsStandards,assertTranslatesConsistently
andassertMatches, for any other matcher, fail with the same messages.- Nothing else depends on the module, so a ScalaTest project never gets
MUnit. ScalaTest stays on an MUnit suite's class path, as the rules are
built on it, andTwirlSpecReporterdoes not report an MUnit run.
- It has
- CI's consumer service runs an MUnit suite beside its ScalaTest spec, on every
row.checkPomsholds MUnit to the MUnit module's POM.
Full Changelog: v3.1.0...v3.2.0
v3.1.0
Immutable
release. Only release title and notes can be modified.
Changed
- The library is compiled for Java 17 where it was compiled for Java 21, so a
service on Java 17 can use it as well. Its classes use nothing newer than
Java 17 and are Java 17 class files, which Java 21 and later still run, so
nothing changes for a service already on Java 21. Scala 3.3.0, the first of
the 3.3 LTS line, stays the oldest Scala it supports. - CI runs a service's view specs at the floor as well: Java 17, Scala 3.3.0 and
Play 3.0.0, with the library itself built on Java 17.
Full Changelog: v3.0.0...v3.1.0
v3.0.0
Immutable
release. Only release title and notes can be modified.
Changed
- The 2.x line closes, and 3.x begins as the stable line, from 2.15.0's code. The
public API, the rule ids, the published dependencies and every verdict are
those of 2.15.0, so a 2.x service moves by its version alone: see
Moving from 2.x to 3.x. Binary
compatibility is held against 3.0.0 from here, and a minor version may change
only what the README's Versioning section says it may. - The changelog keeps the 2.x line to one entry, as it keeps 1.x. Each 2.x
release's notes stay on its GitHub Release.
Full Changelog: v2.15.0...v3.0.0
v2.15.0
Immutable
release. Only release title and notes can be modified.
Added
TwirlSpecReporter, a ScalaTest reporter to add with-C, writes a report of
the whole run totarget/twirl-spec-report, asindex.htmlandreport.md.
It shows how many tests passed, failed, warned and were cancelled, and how
long the run, each suite and each test took. Each catalogue page's checks are
laid out as rules by language, with each failure's message beside it, and
other tests are listed under their suite.- Each catalogue test carries tags, for its kind (
twirlspec.render,
twirlspec.standards,twirlspec.translation), its language
(twirlspec.lang.cy) and its rule (twirlspec.rule.one-h1), with
twirlspec.catalogueon all of them andtwirlspec.excusedwhere the page is
excused, so-nand-lcan run part of a catalogue.
Full Changelog: v2.14.0...v2.15.0
v2.14.0
Immutable
release. Only release title and notes can be modified.
Changed
- A catalogue names the language each test ran in, where a test said "in every
language". In each language the application is configured for, each state
has a test that it renders, asmust render blank, in cy, and each standards
rule a test of its own, as `must meet one-h1 in cy: a page has exactly one`. Each comparison rule has a test for each language other than English, as `must translate consistently by i18n-same-links, cy against en: ...`. With one language, the page still has a test that it declares it, as `i18n-lang-attribute, en alone`, as `checkTranslation` checks. A bilingual page now has about twice the tests, and test names change again: a filter such as `-z "meet one-h1:"` now matches nothing.
- The languages are read as the spec is built, to name the tests, and a spec
whose application cannot be built then is refused, with a message saying to
defineapplicationConfigwith adefor alazy val.
Full Changelog: v2.13.0...v2.14.0
v2.13.0
Immutable
release. Only release title and notes can be modified.
Added
cataloguePage(page) { ... }puts a page's own tests under its label, after a
test for each of its checks, so a spec per view names the view once in the
report, where a catalogue and the spec's own"View" must { ... }each named
it.catalogue(pages*)writes each page ascataloguePagedoes, with no tests
of its own.
Full Changelog: v2.12.0...v2.13.0