Skip to content

Conditionally skip blocks #393

@talex5

Description

@talex5

I'd like to skip certain blocks/sections, where the test is performed at runtime. For example, when running on macos in the opam sandbox we can't run any tests that use the network, and when running in a Docker container we might not be able to use IPv6.

Is there a good way to do this already?

If not, what's the best way to implement this? Perhaps if a block raises Mdx_skip then it could just be ignored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions