antonmi/espec

Add option for suppress logs in test cases.

Offen

#243 geöffnet am 11.10.2017

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Elixir (67 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (814 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

It would awesome to have a functionality similar to the ExUnit tags. Especially for the suppression of the logs generated in the tests.

@tag :capture_log
it "should forward the error result and stop" do
  #...
do

It would be useful for cases like this one, where ran three tests successfully but the first one is showing a ugly log.

.2017-10-11 14:46:57.783 nonode@nohost pid=<0.30.0> : Process #PID<0.576.0> raised an exception
** (RuntimeError) crash_test
    spec/orders_service/fsm/recipient_spec.exs:683: anonymous fn/0 in (....)
..

This functionality already exists and is not documented correctly? or could be added in a near future? A function capture_log already exists, but the purpose is different.

Contributor Guide