cybertk / cybertk/abao

Opt-in to output 'Skip as no hooks defined'

Open
#148 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
CoffeeScript
Stars
352
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hi,

I find it useful not to print out mocked test when skipped.
So in `test-runner.coffee`:

```
# No Hooks for this test
if not hooks.hasName(test.name) and options['hooks-only']
# suite.addTest new Mocha.Test 'Skip as no hooks defined'
return
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Read test-runner.coffee at the hooks-only check and trace how options are supplied. Make the 'Skip as no hooks defined' output optional while preserving the existing return behavior for tests without hooks; done means the message appears only when the new opt-in is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
cli, testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.