{"action":"created","issue":{"url":"https://api.github.com/repos/eggjs/egg/issues/2549","repository_url":"https://api.github.com/repos/eggjs/egg","labels_url":"https://api.github.com/repos/eggjs/egg/issues/2549/labels{/name}","comments_url":"https://api.github.com/repos/eggjs/egg/issues/2549/comments","events_url":"https://api.github.com/repos/eggjs/egg/issues/2549/events","html_url":"https://github.com/eggjs/egg/issues/2549","id":322594490,"number":2549,"title":"设置nyc coverage格式","user":{"login":"wangxuepeng","id":4516203,"avatar_url":"https://avatars0.githubusercontent.com/u/4516203?v=4","gravatar_id":"","url":"https://api.github.com/users/wangxuepeng","html_url":"https://github.com/wangxuepeng","followers_url":"https://api.github.com/users/wangxuepeng/followers","following_url":"https://api.github.com/users/wangxuepeng/following{/other_user}","gists_url":"https://api.github.com/users/wangxuepeng/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxuepeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxuepeng/subscriptions","organizations_url":"https://api.github.com/users/wangxuepeng/orgs","repos_url":"https://api.github.com/users/wangxuepeng/repos","events_url":"https://api.github.com/users/wangxuepeng/events{/privacy}","received_events_url":"https://api.github.com/users/wangxuepeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-13T13:35:59Z","updated_at":"2018-05-16T02:31:03Z","closed_at":"2018-05-15T06:40:41Z","author_association":"NONE","body":"<!--\r\nThank you for reporting an issue.\r\n\r\n1. It's RECOMMENDED to submit PR for typo or tiny bug fix.\r\n2. If this's a FEATURE request, please provide: details, pseudo codes if necessary.\r\n3. If this's a BUG, please provide: course repetition, error log and configuration. Fill in as much of the template below as you're able.\r\n4. It will be nice to use `egg-init --type=simple bug` to provide a mini GitHub repository which can reproduce the issue.\r\n\r\n感谢您向我们反馈问题。\r\n\r\n1. 提交问题前，请先阅读 https://eggjs.org/zh-cn/faq.html\r\n2. 我们推荐如果是小问题（错别字修改，小的 bug fix）直接提交 PR。\r\n3. 如果是一个新需求，请提供：详细需求描述，最好是有伪代码实现。\r\n4. 如果是一个 BUG，请提供：复现步骤，错误日志以及相关配置，并尽量填写下面的模板中的条目。\r\n5. 如果可以，请使用 `egg-init --type=simple bug` 提供一个最小可复现的代码仓库，方便我们排查问题。\r\n6. 扩展阅读：[如何向开源项目提交无法解答的问题](https://zhuanlan.zhihu.com/p/25795393)\r\n-->\r\n\r\n* **Node Version**:\r\n* **Egg Version**:\r\n* **Plugin Name**:\r\n* **Plugin Version**:\r\n* **Platform**:\r\n* **Mini Showcase Repository**:\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n\r\n文档里讲到可以使用npm run cov生成单元测试覆盖率报告。但是默认的格式是HTML。\r\n\r\nnyc支持多种报告格式：\r\nclover, cobertura, html, json-summary, json, lcov, lcovonly, none, teamcity, text-lcov, text-summary, text\r\n\r\n请问npm run cov如何指定报告格式？\r\n"},"comment":{"url":"https://api.github.com/repos/eggjs/egg/issues/comments/389375355","html_url":"https://github.com/eggjs/egg/issues/2549#issuecomment-389375355","issue_url":"https://api.github.com/repos/eggjs/egg/issues/2549","id":389375355,"user":{"login":"wangxuepeng","id":4516203,"avatar_url":"https://avatars0.githubusercontent.com/u/4516203?v=4","gravatar_id":"","url":"https://api.github.com/users/wangxuepeng","html_url":"https://github.com/wangxuepeng","followers_url":"https://api.github.com/users/wangxuepeng/followers","following_url":"https://api.github.com/users/wangxuepeng/following{/other_user}","gists_url":"https://api.github.com/users/wangxuepeng/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxuepeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxuepeng/subscriptions","organizations_url":"https://api.github.com/users/wangxuepeng/orgs","repos_url":"https://api.github.com/users/wangxuepeng/repos","events_url":"https://api.github.com/users/wangxuepeng/events{/privacy}","received_events_url":"https://api.github.com/users/wangxuepeng/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T02:31:03Z","updated_at":"2018-05-16T02:31:03Z","author_association":"NONE","body":"Hi,\r\nI tried this but it does not work. \r\n\r\nI placed a `.nycrc` file under root and run `yarn cov`, none of the settings work. \r\n\r\nI checked file [https://github.com/eggjs/egg-bin/blob/master/lib/cmd/cov.js](https://github.com/eggjs/egg-bin/blob/master/lib/cmd/cov.js) and see all settings seems are fixed."}}
{"actor":{"display_login":"wangxuepeng"}}