Ah, that's much simpler!

Thank you for the help!

On Thursday, February 3, 2022 at 9:09:09 AM UTC-5 José Valim wrote:

> IIRC "mix test --formatter MyFormatter" should do it.
>
> On Thu, Feb 3, 2022 at 3:06 PM sp <[email protected]> wrote:
>
>> Hi José! Thank you for the reply!
>>
>> I thought about that, but couldn't see a way to change the formatter 
>> based on a custom flag for 'mix test'...?
>>
>> Ideally, I'd love to be able to run 'mix test --concise' so I can change 
>> the formatter on the fly.
>> On Thursday, February 3, 2022 at 8:59:18 AM UTC-5 José Valim wrote:
>>
>>> Hi!
>>>
>>> ExUnit supports custom formatters, so my suggestion is to implement your 
>>> own formatter and plug it in, without a need to change Elixir. :)
>>>
>>> On Thu, Feb 3, 2022 at 1:47 PM sp <[email protected]> wrote:
>>>
>>>> Hello!
>>>>
>>>> While working through a project I found that I just wanted a print out 
>>>> of tests that failed and on what line instead of the full description and 
>>>> stack trace. Something like:
>>>> test/my_test.exs:5
>>>> test/my_test.exs:12
>>>> .... etc
>>>>
>>>> I was able to 'grep' something close to this but feel it would be 
>>>> helpful to pass an option to 'mix test' allowing for a concise output.
>>>>
>>>> I've got something close with the Elixir source code, I've changed the 
>>>> CLI formatter behavior when the option is present, but wanted to make sure 
>>>> others would approve before opening a PR.
>>>>
>>>> Please let me know your thoughts!
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "elixir-lang-core" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/elixir-lang-core/1764a0c9-e191-4f5c-916e-99abdd881c47n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/elixir-lang-core/1764a0c9-e191-4f5c-916e-99abdd881c47n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "elixir-lang-core" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elixir-lang-core/10867cec-0f07-446b-9a99-fb31ef9256een%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/elixir-lang-core/10867cec-0f07-446b-9a99-fb31ef9256een%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/a19bf563-f196-40ae-b28a-03a45d29c906n%40googlegroups.com.

Reply via email to