Commit 8cfc4da
use lazy_html for LiveViewTest (#3746)
* use lazy_html for LiveViewTest
Phoenix.LiveView v1.1 will use LazyHTML in its testing infrastructure.
Besides featuring a faster HTML parser, LazyHTML has the benefit of
keeping the HTML document in memory and converting it to a tree lazily,
which allows it to reduce memory allocation (something that can be
better exploited by applications that also choose to migrate to LazyHTML
in their own suites).
Furthermore, it supports additional query selectors and provides a
behaviour more aligned to browsers.
Using this branch in Livebook reduced the test suite from ~9s to ~7s.
Co-Authored-By: Jonatan Kłosko <[email protected]>
Co-Authored-By: José Valim <[email protected]>
* use published version
* properly clear lazy_cache
* update single file test script
---------
Co-authored-by: Jonatan Kłosko <[email protected]>
Co-authored-by: José Valim <[email protected]>1 parent 7d5578f commit 8cfc4da
File tree
24 files changed
+1507
-1116
lines changed- .github/single-file-samples
- lib/phoenix_live_view/test
- test
- phoenix_component
- phoenix_live_view
- integrations
- test
- support/live_views
24 files changed
+1507
-1116
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments