b1az
Would you enable ExUnit's `--trace` option in a CI environment (GitHub)? (poll)
Coworker and I are at an impasse and would appreciate the community’s vote to resolve it. ![]()
Would you enable
--trace option in a CI environment (GitHub)?- Yes,
--traceoption in a CI environment has its uses. - No,
--traceoption in a CI environment makes no sense.
0
voters
Elixir’s test-runner has a --trace option which does the following:
- it discards all of Elixir’s concurrency abilities and (slowly) runs everything sequentially, one-by-one
- it prints the test-names (here, here, etc.), even the passing ones. (The failed tests are, of course, always printed, even without
--trace.) - sets the test-timeout to
:infinity. It’s tracing, so this is expected/welcome (in dev/local environment). But not desired in a CI env as it can blow up the bill/costs.
Here’re coworker and my positions:
- Coworker’s argument for tracing is effectively the 2. above. In his words, it “gives a better visual understanding which tests are running”.
- My position against it are that:
- Not only are downsides of 1. and 3. not worth it, but one can also
- just look at the test file to see which tests are running. Moreover, one shouldn’t even care about the names of the passing tests, abiding by the Rule of Silence.
Most Liked
ypconstante
You can use a formatter like junit_formatter to have test information without having to use --trace.
2
lud
Yes trace is more for debugging the tests. If some company requires --trace for some reason, I would run both versions in CI, so the CI still runs with tests in concurrency that can fail and detect if something is messing with shared state.
2
Popular in Discussions
I’ve been primarily doing Elixir development for the past 6 years or so, and during that time whole heartedly committed to functional par...
New
I think I’ve tried 5 different graph database libraries in the last two days and not a single one has been able to connect to a remote/lo...
New
A recent chat with @leifericf inspired this thread - he’s worked in the gaming industry, and so it got me wondering what kind of industri...
New
I’m curious how others in the community deal with first class enums… especially crossing boundaries like database, code logic, and absin...
New
With the announcement of 1.19 rc0 and the path to user-supplied type annotations, I want to make the case for inline types—both for funct...
New
Hey everyone – after coming off of 3 years building with Ecto, I’ve been working non-stop on Typegres, a new query builder that strongly ...
New
I’m wondering how do people structure their JSON Api’s with Phoenix. Using the blogs example, let’s say I have a blogs view like the foll...
New
I’ve been brainstorming about ways to solve the N-dimensional code organization problem, and am thinking about developing a Smalltalk-lik...
New
Thinking about how Contexts on Phoenix 1.3 are beautiful in the simplicity, elegance and minimalism, coalesced in the smallest unity of E...
New
It is rare to use direct calls to send in elixir. The call is normally wrapped in a function which is responsible for sending the correct...
New
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
I will often find my self writing things similar to:
case some_value do
nil -> something()
"" -> something()
_ -> someth...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Hi everyone,
One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New







