Skip to content

It fails if the current path includes spaces #77

Open
@ilg-ul

Description

The reporter does not like paths with spaces (which are quite common on macOS):

ilg@wksi xpm-js.git % pwd
/Users/ilg/My Files/WKS Projects/xpack.github/npm-modules/xpm-js.git
> tap --timeout 300 --disable-coverage --allow-empty-coverage -R tap-mocha-reporter -r classic run "tests/tap/*.js"

/bin/sh: /Users/ilg/My: No such file or directory
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at __node_internal_captureLargerStackTrace (node:internal/errors:478:5)
    at __node_internal_errnoException (node:internal/errors:608:12)
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:905:11)
    at Socket._write (node:net:917:8)
    at writeOrBuffer (node:internal/streams/writable:391:12)
    at _write (node:internal/streams/writable:332:10)
    at Socket.Writable.write (node:internal/streams/writable:336:10)
    at TAP.[emitData] (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/minipass/dist/mjs/index.js:790:24)
    at TAP.emit (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/minipass/dist/mjs/index.js:750:37)
    at TAP.emit (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/base.js:542:27)
    at TAP.write (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/minipass/dist/mjs/index.js:367:18)
    at TAP.write (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/base.js:443:22)
    at TAP.write (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/tap.js:184:22)
    at TAP.#online (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/base.js:463:21)
    at Parser.<anonymous> (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/base.js:292:49)
    at Parser.emit (node:events:513:28)
    at Parser.version (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/tap-parser/dist/esm/index.js:408:18)
    at Parser.parse (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/tap-parser/dist/esm/index.js:783:18)
    at Parser.write (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/tap-parser/dist/esm/index.js:316:18)
    at TAP.#process (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/test-base.js:652:29)
    at TAP.plan (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/core/dist/esm/test-base.js:279:26)
    at TAP.plan (file:///Users/ilg/My%20Files/WKS%20Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/test/test-built/dist/esm/index.js:55:23)
    at executeTestSuite (/Users/ilg/My Files/WKS Projects/xpack.github/npm-modules/xpm-js.git/node_modules/@tapjs/run/src/execute-test-suite.ts:137:7)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

 *  The terminal process "/bin/zsh '-l', '-c', 'npm run test-tap'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions