Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

spm test 生成 coverage 失败 #1020

@hotoo

Description

@hotoo

测试 https://github.com/hotoo/detector 模块时:

$ spm -v
3.2.1
$ spm test
...
  516 passing (428ms)

undefined:1
Error: [jscoverage] unknow ENV!
^
SyntaxError: Unexpected token E
    at Object.parse (native)
    at cleanJSON (/usr/local/lib/node_modules/spm/node_modules/mocha-browser2/index.js:183:15)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/spm/node_modules/mocha-browser2/index.js:164:12)
    at EventEmitter.emit (events.js:104:17)
    at Socket.<anonymous> (/usr/local/lib/node_modules/spm/node_modules/mocha-browser2/index.js:76:15)
    at Socket.EventEmitter.emit (events.js:129:20)
    at _stream_readable.js:898:16
    at process._tickCallback (node.js:343:11)

   Fail to output _site/coverage.json
[SyntaxError: /Users/hotoo/workbench/hotoo/detector/_site/coverage.json: Unexpected token E]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions