b1az

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. :slight_smile:

Would you enable --trace option in a CI environment (GitHub)?
  • Yes, --trace option in a CI environment has its uses.
  • No, --trace option in a CI environment makes no sense.
0 voters

Elixir’s test-runner has a --trace option which does the following:

  1. it discards all of Elixir’s concurrency abilities and (slowly) runs everything sequentially, one-by-one
  2. it prints the test-names (here, here, etc.), even the passing ones. (The failed tests are, of course, always printed, even without --trace.)
  3. 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.
#ci

Most Liked

ypconstante

ypconstante

You can use a formatter like junit_formatter to have test information without having to use --trace.

lud

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.

Where Next?

Popular in Discussions Top

cjbottaro
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
artimath
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
AstonJ
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
bglusman
I’m curious how others in the community deal with first class enums… especially crossing boundaries like database, code logic, and absin...
New
smueller
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
ryanrasti
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
ashkan117
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
dogweather
I’ve been brainstorming about ways to solve the N-dimensional code organization problem, and am thinking about developing a Smalltalk-lik...
New
marciol
Thinking about how Contexts on Phoenix 1.3 are beautiful in the simplicity, elegance and minimalism, coalesced in the smallest unity of E...
New
Crowdhailer
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 Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
yawaramin
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
sergio_101
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
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
shahryarjb
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
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
Fl4m3Ph03n1x
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
josevalim
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

We're in Beta

About us Mission Statement