Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aloe should have the skip feature #11

Open
jhomarolo opened this issue Jan 2, 2023 · 1 comment
Open

Aloe should have the skip feature #11

jhomarolo opened this issue Jan 2, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jhomarolo
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
One of the most common actions when writing or debugging tests, regardless of the framework used, is being able to ignore some tests.
That is especially true if you practice TDD, or tend to first list the placeholders for the tests you plan to write.

Describe the solution you'd like
The skip() feature should have inside the aloe library as the similar in mocha https://danielkorn.io/post/skipping-tests-in-mochajs/

@jhomarolo jhomarolo added the enhancement New feature or request label Jan 2, 2023
@dalssoft
Copy link
Member

dalssoft commented Jan 2, 2023

Here are my suggestions...

Spec

This is the suggested code to skip a spec:

const createUserSpec = spec.skip({

There should have a visual indicator that the spec is skipped when running herbs spec.

Scenario

This is the suggested code to skip a scenario:

const createUserSpec = spec({

    ...
  
    'Create a new user when it is valid': scenario.skip({

There should have a visual indicator that the scenario is skipped when running herbs spec.

Given, When and Check

For given, when and check I don't see the need to skip them, right?

@jhomarolo jhomarolo moved this to More discussion is needed in Herbs enterprise roadmap 2023 Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: More discussion is needed
Development

No branches or pull requests

2 participants