I am trying to get F # and a dome for registering tests in html files.
So here it says that all I need to do is:
open configuration
open reporters
reporter <- new LiveHtmlReporter() :> IReporter
This did not work for me. I managed to launch LiveHtmlReporter using Chrome to start it. Now I try my best to save reports after the tests are completed.
When I try to use:
reporter <- new LiveHtmlReporter(Chrome, "C:\\") :> IReporter
let liveHtmlReporter = reporter :?> LiveHtmlReporter
liveHtmlReporter.saveReportHtml @"C:\" "report"
It throws an InvalidOperationException, it was an unhandled error before it gets to the tests and doesn't save anything. Also, when tests are running - I can only see context headers, and test names are not printed - just Pass or Fail without a test name.
One more thing - to take a screenshot with an error - this also does not happen.
, . ?