MagicPoulp
Many thanks for the help.
I need a framework for integration testing in ELixir.
It seems that ExUnit lacks the creation of folders, HTML files, and complete isolation of tests, and logging of when something goes wrong exactly when.
So I was thinking using common test from Erlang which is made for black box/whitebox testing.
THere is a package commoner, I tried it, but it is full of warning and old.
So I run ct_run directly on an erlang test suite.
Then I think I run Elixir programs from Erlang as external processes.
Is this a good way to go ?
Isn’t it better to use a framework like python that is also common for integration testing ?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security











Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
D4no0
What kind of integration tests are we talking about? What framework you are already using and what kind of application you want to test?
These are pretty strong claims, from which most are completely wrong, have you read the official documentation before getting started? It is also wise to read documentation of the libraries/frameworks you are using, as most of them have guides and utilities for testing.
benwilson512
Can you elaborate on what you mean by this? Why would a language level test framework make HTML files? What even do you need an HTML file for in your test?
Tangentially if you are looking for a temporary file / folder package for making files that get cleaned up check out Briefly Usage Guide — briefly v0.5.1
LostKobrakai
ExUnit has this built in as well: ExUnit.Case — ExUnit v1.20.2
MagicPoulp
Thanks for the help.
ExUnit is perfect for testing Elixir code itself.
Integration testing is needed to run my elixir application inside systemd --user, using server mock (nodejs). And to run 1000 tests during a long time in different orders, and to generate data and run. I do not really need common test. I could do exactly the same thing in ruby or python, it is like shell scripting. But I need the folder that keeps track of temporary files and I need html reports.
Here a guy compared ExUnit with Common test. But the text is 5 years old.
Common Test for Elixir developers - Hauleth.
I was unable to find good HTML reports via ExUnit. Or I would need to build stuff via reporters, etc.
Even non HTML reports that lists all tests are hard to get for me in ExUnit.
D4no0
Depending on the use-case, ExUnit can be used for integration tests, after all this is a fully-fledged test suite that starts the entire application. The specific requirements outlined in that article don’t seem to be something of industry standard, at least I’ve never seen it done like this where I worked at, so I’m not sure you can expect this to be fully officially supported.
From what you are writing you are most probably looking for an external tool to do this kind of testing and from elixir side all you have to do is start your server?
MagicPoulp
The gap between ExUnit and Erlang-common test is similar to the gap between Eunit and COmmont test in 100% Erlang.
So you can see better what I mean since it is better documented after many years in use.
However, I could do my stuff in Python. That seems simpler and more current.
I would need to run Elixir external programs from Erlang so that would be the same.
I more and more start to think Python would be better than running common test.
To answer you about the need of HTML,
MagicPoulp
It seems to me that I can do 100% in Elixir with ExUnit.
There is a JUnit formatter in Elixir
https://github.com/victorolinasc/junit-formatter
And there is a way to generate HTML from the JUnit XML.
Why was there this gap EUnit/COmmon test at the time of Erlang ?
And what cool stuff would ExUnit be missing for high level system testing ?