Skip to content

Enhancement to allow to skip a test from the code #565

@juliangp

Description

@juliangp

🤔 What's the problem you're trying to solve?

We require the means to skip a test from the code. Here are a couple of examples:

  1. We run tests that require an environment variable, if that variable is not set then we want to skip the test.
  2. We run tests to check tls ciphers on a server for a given tls version, if the server does not support that tls version then we want to skip the test.

✨ What's your proposed solution?

The proposed solution is to have an error (something like godog.SkipTest) that can be returned from the code and that will mark the test/scenario as skipped but not as failed.

⛏ Have you considered any alternatives or workarounds?

For now we have a test context where we set a flag and then we have to add code to skip all godog methods if flagged.
This has the disadvantage that the test is not marked as skipped.

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

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