mocha-parallel / mocha-parallel-tests

Parallel test runner for mocha tests. Looking for maintainer.
MIT License
200 stars 45 forks source link

cli doesn't appear to work the same way as mocha #287

Open xenoterracide opened 4 years ago

xenoterracide commented 4 years ago

with mocha

Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts

  value
    1) simple property

  0 passing (60ms)
  1 failing

  1) value
       simple property:
     AssertionError [ERR_ASSERTION]: Expected 'Hello World' to equal 'hello     World'.
      at Object.fail (node_modules/assertthat/build/lib/fail.js:11:22)
      at Object.equalTo (node_modules/assertthat/build/lib/constraints/equalTo.js:10:16)
      at Context.<anonymous> (test/inject.spec.ts:17:39)
      at processImmediate (internal/timers.js:439:21)
      at process.topLevelDomainCallback (domain.js:130:23)

with mocha-parallel-tests, exact same params, also tried with --recurse test/

Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha-parallel-tests --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts
No test files found

now oddly

Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha-parallel-tests --require "source-map-support/register" --require "ts-node/register" --require "esm" --extension ts test/inject.spec.ts 

    value
      1) simple property

  0 passing (7s)
  1 failing

  1) 
       value
         simple property:
     AssertionError [ERR_ASSERTION]: Expected 'Hello World' to equal 'hello     World'.
      at Object.fail (node_modules/assertthat/build/lib/fail.js:11:22)
      at Object.equalTo (node_modules/assertthat/build/lib/constraints/equalTo.js:10:16)
      at Context.<anonymous> (test/inject.spec.ts:17:39)
Calebs-MBP:aurelia-propertysource calebcushing$ npx mocha --version && npx mocha-parallel-tests --version
7.1.1
2.3.0

what gives?