Proposal: Allow `describe` blocks in ExUnit test to be skipped

355 views
Skip to first unread message

eksperimental

unread,
Feb 3, 2022, 9:35:15 AM2/3/22
to elixir-l...@googlegroups.com

Currently `@tag :skip` is only effictive in tests, but if I have a
describe block with 10 test, i need to add the tag to each one
individually.

So I propose for the describe blocks to support the skip tag to ease
development testing.

Wojtek Mach

unread,
Feb 3, 2022, 9:50:52 AM2/3/22
to elixir-lang-core
This is already possible with `@describetag :skip` inside a describe block. There's a `@moduletag :skip` too!

-- 
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 elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/61fbe820.1c69fb81.42a6b.777fSMTPIN_ADDED_MISSING%40gmr-mx.google.com.

eksperimental

unread,
Feb 3, 2022, 10:18:50 AM2/3/22
to elixir-l...@googlegroups.com
It totally slipped my mind.
I will update the docs to make this more noticeable,
as of now if you look for "skip" the only relevant information is for
skipping tests, not modules or describe blocks.

Thank you Wojtek,

On Thu, 03 Feb 2022 15:50:49 +0100
Wojtek Mach <woj...@wojtekmach.pl> wrote:

> This is already possible with `@describetag :skip` inside a describe
> block. There's a `@moduletag :skip` too!
>
> On February 3, 2022, elixir-lang-core <elixir-lang-
Reply all
Reply to author
Forward
0 new messages