herbsjs / aloe

Scenario description and test runner for Herbs
Other
0 stars 7 forks source link

Aloe should have the skip feature #11

Open jhomarolo opened 1 year ago

jhomarolo commented 1 year ago

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/

dalssoft commented 1 year ago

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?