germsvel/phoenix_test
68.2
Adequate · 15 November 2026
3.5k
lines of production code
Elixir
primary language
5
measurements over time
What this system is
Features
Added automated changelog generation and release publishing scripts
Two new executable scripts have been added to the bin directory to streamline the release process. The \bin/create\_changelog\ script automatically generates the CHANGELOG.md file by aggregating commit messages and links between the last release tag and the current HEAD. The \bin/publish\ script automates the version bumping of \lib/phoenix\_test.ex\ and \mix.exs\, followed by committing, tagging, pushing, and publishing the package to Hex.
bin · high confidence
Credo check to prevent open\_browser usage in tests
A new Credo check, PhoenixTest.Credo.NoOpenBrowser, has been added to the library. This check scans test code for calls to \open\_browser/1\ (including \PhoenixTest.open\_browser/1\) and flags them as warnings. This helps developers avoid committing code that opens browsers during CI runs, which can cause unexpected behavior and failures.
_lib/phoenix\test/credo · high confidence
Initial release of PhoenixTest library
Introduces PhoenixTest, a new library for writing unified feature tests for Phoenix applications, supporting both LiveView and static pages. The library provides a user-centric API for navigation (visit, click\_link, click\_button), form interaction (fill\_in, select, choose), and assertions (assert\_has, refute\_has), allowing seamless testing of flows that cross between LiveView and static contexts without requiring JavaScript execution.
lib · high confidence
Initial release of PhoenixTest with unified feature testing and improved assertions
PhoenixTest is introduced as a library providing a unified way to write feature tests for both LiveView and static (non-LiveView) Phoenix pages, handling navigation between them seamlessly. It replaces the need for separate LiveView and controller testing strategies by offering helpers like \visit\, \click\_link\, \fill\_in\, and \assert\_has\ that work across page types. The library also provides improved assertion error messages compared to standard \=\~\ comparisons. This initial release includes version 0.12.1, which adds support for aria-labels in clicks and assertions, nested withins, and fixes for hidden inputs and double scoping of links. It also deprecates older form helpers like \fill\_form\ and \submit\_form\ in favor of label-based helpers like \fill\_in\ and \select\, and requires Elixir 1.19 and Erlang 27.
(repo-wide) · high confidence
Introduce PhoenixTest DSL with Live and Static session drivers
This change introduces the core PhoenixTest API, providing a unified DSL for testing both LiveView and static pages. It adds new session structs (\PhoenixTest.Live\ and \PhoenixTest.Static\) that implement the \PhoenixTest.Driver\ protocol, enabling actions like \visit/2\, \click\_link/2\, \click\_button/2\, \fill\_in/3\, \select/3\, \check/2\, \uncheck/2\, \choose/2\, \upload/3\, and \submit/1\. The library also adds assertion helpers such as \assert\_has/2\, \refute\_has/2\, \assert\_path/2\, and \refute\_path/2\, along with a \within/2\ helper for scoped queries. Under the hood, it replaces the previous HTML parsing logic with \LazyHTML\, manages form state via \ActiveForm\ and \FormData\, and uses a \LiveViewWatcher\ GenServer to handle LiveView redirects and lifecycle events.
_lib/phoenix\test · high confidence
Behavioural changes
Add environment-specific configuration for PhoenixTest endpoints
The application now uses a structured configuration setup with \config/config.exs\ delegating to environment-specific files. In development (\config/dev.exs\), the endpoint is set to \PhoenixTest.Endpoint\. In the test environment (\config/test.exs\), two endpoints are configured: \PhoenixTest.WebApp.Endpoint\ (listening on port 4000) and \PhoenixTest.AnotherWebApp.Endpoint\ (listening on port 4001), along with specific settings for LiveView signing salts, secret keys, and PubSub servers. The test config also sets the logger level to error and configures esbuild version 0.17.11 for asset bundling during tests.
config · high confidence
Refactored element handling into dedicated modules under Element namespace
The internal implementation for interacting with HTML elements has been reorganized into specific modules (Button, Field, Form, Link, Select) within the PhoenixTest.Element namespace. This structural change improves code maintainability and clarity for each element type's specific logic, such as form submission behavior for buttons, label-based finding for fields, and option selection for selects, without altering the public API surface for users.
_lib/phoenix\test/element · high confidence
Test coverage
Added comprehensive test suite for PhoenixTest core components; Added performance benchmarks for assertion helpers; Added test support application for verification infrastructure; Added tests for deprecation warnings, endpoint configuration, and Credo checks; Added tests for element parsing and form data handling; New browser-parity verification suite for form and navigation behavior.
Dependencies
Major dependency overhaul and test infrastructure setup
The project has significantly expanded its dependency footprint and test tooling. The core library now supports Phoenix 1.8 (upgrading from 1.7.10) and LiveView 1.0+, while replacing the Floki HTML parser with LazyHTML. New development and test dependencies include Ecto, esbuild, ex\_doc, benchee, styler, and credo. Additionally, a new Node.js-based verification suite has been added under \test/verification\, introducing Playwright 1.56.1 for browser-based testing.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 69 → 68 (-0.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 99 → 90 (-8.9)
- Architecture 100 → 100 (-0.0)
- Maturity 54 → 54 (+0.0)
- Readiness 71 → 71 (-0.1)
- Security 97 → 97 (-0.2)
- Performance 85 → 85 (+0.0)
Resolved (1)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
New (13)
- Edited copies of one member (3 members, 13+ corresponding lines) (lib/phoenix_test/element/field.ex)
- Edited copy of a member (12 corresponding lines) (lib/phoenix_test/live.ex)
- Edited copy of a member (13 corresponding lines) (lib/phoenix_test/query.ex)
- Edited copy of a member (17 corresponding lines) (lib/phoenix_test/assertions.ex)
- Edited copy of a member (19 corresponding lines) (lib/phoenix_test/live.ex)
- Edited copy of a member (27 corresponding lines) (lib/phoenix_test/assertions.ex)
- Edited copy of a member (41 corresponding lines) (lib/phoenix_test/assertions.ex)
- Edited copy of a member (9 corresponding lines) (lib/phoenix_test/live.ex)
- Edited copy of a member (9 corresponding lines) (lib/phoenix_test/live.ex)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Medium CVE: EEF-[CVE redacted] (mix.lock)
- Outdated: lazy_html
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
germsvel/phoenix_test was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 5f7395cf681ccbb3b01e138e3e7d15b554a965f6 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.