Juggernaut.Failures (Juggernaut v0.4.0)

Copy Markdown View Source

How an infrastructure error says why tests failed, not only which: the first failing outcome's failure message (Juggernaut.Peer.Formatter's failure), its whitespace collapsed and cut at 300 characters, so the error fits on one line and the cause needs no rerun by hand.

Summary

Functions

"; first failure, <test>: <message>" for the first of outcomes whose failure has a message, or "" when none has one.

Functions

first(outcomes)

@spec first([map()]) :: String.t()

"; first failure, <test>: <message>" for the first of outcomes whose failure has a message, or "" when none has one.