Fl4m3Ph03n1x
How to test Phoenix LiveView UI only application?
Background
I have a Phoenix LiveView application called WebInterface that has little to no logic inside it.
Instead, this application only has logic related to managing windows and UI related tasks.
This application is an umbrella app, that uses another umbrella app, called core which has all the business logic and goodies.
Problem
I am using excoveralls to make sure I have a decent level of test coverage across my umbrella apps, WebInterface included.
However, since there is very little logic to test, I have a low amount of test coverage, namely 18%.
This would be fine, except that excoveralls has a minimum threshold of 90%, which causes the coveralls.github task to fail and thus fails the pipeline as well.
Question
- Is there a standard way to increase test coverage for this type of UI only applications in Elixir?
- What tools do you usually use?
- If this is not possible/not good idea, how would you fix the issue?
First Post!
RudManusachi
I didn’t get it.. can’t you use LiveView testing helpers from Phoenix.LiveViewTest — Phoenix LiveView v1.2.5?
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








