Skip to content

--watch and --recursive command line parameters not executing tests correctly on Windows #2327

@WaffleSouffle

Description

@WaffleSouffle

Setup

Tested with node 6.2.2 (https://nodejs.org/dist/v6.2.2/node-v6.2.2-x64.msi)
and current master build (v7.0.0-pre) built with MinGW 64 compiler
on Windows 8.1
npm install mocha -g installs mocha 2.5.3 with warnings

npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

Going through walkthrough https://www.codementor.io/nodejs/tutorial/unit-testing-nodejs-tdd-mocha-sinon
Same results executing in a DOS prompt, or a MinGW64 console.

Steps

Running mocha tests --recursive --watch --colors where tests is a root level directory containing tests.
Correctly runs tests initially.

CartSummary
√ getSubtotal() should return 0 if no items are passed in
√ getSubtotal() should return the sum of the price * quantity of the items

2 passing (6ms)

Then edit a test file to introduce non-breaking change.
Output appends

0 passing (0ms)

Any subsequent edits go ignored.

Expected Behaviour

Changes to test files to trigger execution.
Subsequent edits to be noticed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: windowsWindows-specificstatus: needs mcvea defect report needing more information; subject to closing due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions