matthewmueller / matthewmueller/component-test

options for mocha

Open
#32 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
97
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Not sure if i'm missing something here but is there currently a way to pass options (timeout, reporter etc) to mocha? Would be cool if it were the exact same interface as mocha itself:

  component test phantom \
    --reporter spec \
    --timeout 10000 \
    --bail

I tried to use mocha.opts but this didn't work either.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the component test phantom command parses arguments and invokes Mocha, then check why mocha.opts is not being honored. Done means supporting options such as --reporter, --timeout, and --bail through the command with behavior matching Mocha's interface.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.