danielstjules / mocha.parallel

Run async mocha specs in parallel
MIT License
197 stars 20 forks source link

mocha.parallel is printing an object after each test #38

Closed fabiob closed 6 years ago

fabiob commented 6 years ago

When using mocha.parallel, an object is printed after each test run. Downgrading to 0.15.3 fixes the issue.

I've created a repository with a reproducible test: https://github.com/fabiob/mocha.parallel-test-weird-print

Here's the result:

$ mocha

  sample test
    without mocha.parallel
      ✓ should pass
    with mocha.parallel
{
  "title": "should pass",
  "body": "function () {\n        if (spec.error) throw spec.error;\n        spec.ctx.patchContext(this);\n        return spec.promise.then(function() {\n          if (spec.error) throw spec.error;\n        });\n      }",
  "async": 0,
  "sync": true,
  "timedOut": false,
  "pending": false,
  "type": "test",
  "file": "/home/fabio/Projects/OpenSource/BugReports/mocha.parallel-prints/test/parallel_spec.js",
  "parent": "#<Suite>",
  "ctx": "#<Context>"
}
      ✓ should pass

  2 passing (9ms)
fedoseev-vitaliy commented 6 years ago

i have the same issue

zetflo commented 6 years ago

i have the same issue In line 75 into file lib/contextProxy.js Console.log is present

suguru03 commented 6 years ago

@danielstjules I have the same issue too. I can't see the console.log on the master branch, but v0.15.4 on npm seems to include console.log. Could you publish a new version?

millerick commented 6 years ago

@danielstjules following up on this. It looks like what is published as v.0.15.4 does not match what is in source control.

heisian commented 6 years ago

same issue here..

iMacHumphries commented 6 years ago

+1

Shakes03 commented 6 years ago

+1

danielstjules commented 6 years ago

Published 0.15.5, sorry all!