【发布时间】:2015-08-25 00:24:09
【问题描述】:
我正在尝试让 F# 和 canopy 在 html 文件中记录测试。
所以here 它说我需要做的就是:
open configuration
open reporters
reporter <- new LiveHtmlReporter() :> IReporter
这对我不起作用。我设法通过使用 Chrome 启动 LiveHtmlReporter 来启动它。现在我正在努力让它在测试完成后保存报告。
当我尝试使用时:
reporter <- new LiveHtmlReporter(Chrome, "C:\\") :> IReporter
let liveHtmlReporter = reporter :?> LiveHtmlReporter
liveHtmlReporter.saveReportHtml @"C:\" "report"
它在进行测试之前向我抛出 InvalidOperationException is unhandled 错误,并且不保存任何内容。除此之外,当测试运行时 - 我只能看到上下文标题,并且不打印测试名称 - 只是 Pass 或 Fail 没有测试名称。
另一件事是在错误时截屏 - 它也不会发生。
我认为我在代码的最底部做错了。出了什么问题?
【问题讨论】:
标签: f# canopy-web-testing