F# canopy - how to use LiveHtmlReporter? -
i trying f# , canopy log tests in html files.
so here says need is:
open configuration open reporters reporter <- new livehtmlreporter() :> ireporter
this didn't work me. managed start livehtmlreporter using chrome start it. struggling make save reports after tests finished.
when try use:
reporter <- new livehtmlreporter(chrome, "c:\\") :> ireporter let livehtmlreporter = reporter :?> livehtmlreporter livehtmlreporter.savereporthtml @"c:\" "report"
it throws invalidoperationexception unhandled error @ me before tests , doesn't save anything. besides that, when tests run - can see context titles, , test names not printed - pass or fail without test name.
another thing taking screenshot on error - doesn't happen.
i think doing wrong @ bottom of code. going wrong?
i had same problem. should help.
reporter <- new livehtmlreporter(chrome, configuration.chromedir) :> ireporter let livehtmlreporter = reporter :?> livehtmlreporter livehtmlreporter.reportpath <- "reports/automationresults"
Comments
Post a Comment