Go HTML coverage report and command-line browsers

xuanbao · · 620 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hello,</p> <p>Does anyone know if there&#39;s a way to have the cover tool send the HTML report to a command-line browser, like elinks? I&#39;m working on a development cluster and I only have command-line access on those nodes, so it would be nice to see the HTML coverage output without having to switch to a different box. Even just getting the raw HTML to view would be fine.</p> <p>Thanks.</p> <hr/>**评论:**<br/><br/>dgryski: <pre><p>Doesn&#39;t using <code>-o</code> work to send it to an output file?</p></pre>sybrandy: <pre><p>Derp, thanks. For some reason, I thought that only applied to the other commands since it stated that by default it want to STDOUT.</p></pre>dgryski: <pre><p>You can always ask the optimizer with <code>-m</code></p></pre>sybrandy: <pre><p>Actually, your first suggestion worked perfectly.</p></pre>sybrandy: <pre><p>FYI, elinks works pretty nicely with the HTML output. Lynx complained about invalid HTML. I didn&#39;t try any others, you YMMV.</p></pre>dgryski: <pre><p>Ha, my <code>-m</code> comment was meant for a different thread :) No wonder it didn&#39;t make sense to you!</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

620 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传