canopy


Reporting

Console Reporter

The default reporter. Prints results to console. Console Reporter

Live HTML Reporter

Prints results to an html page. Support images. Screenshots on error, supports coverage reports.

1: 
2: 
3: 
open configuration
open reporters
reporter <- new LiveHtmlReporter() :> IReporter
Live HTML Reporter

Coverage

Builds up selectors used for a given url, goes to that page and highlights all elements you have interacted with there. Good for visual reference to what has and has not been tested. Live HTML Reporter

TeamCity Reporter

Prints special outputs that are compatible with team city.

1: 
2: 
3: 
4: 
5: 
open configuration
open reporters
reporter <- new TeamCityReporter() :> IReporter

//screenshot is TODO

JUnit Reporter

Produces test results in basic JUnit format. Compatible with CircleCI.

1: 
2: 
3: 
open configuration
open reporters
reporter <- new JUnitReporter("./TestResults.xml") :> IReporter
namespace canopy
module runner

from canopy
namespace System
module configuration

from canopy
module reporters

from canopy
val mutable reporter : IReporter

Full name: canopy.configuration.reporter
Multiple items
type LiveHtmlReporter =
  interface IReporter
  new : unit -> LiveHtmlReporter
  new : browser:BrowserStartMode -> LiveHtmlReporter
  new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
  new : browser:BrowserStartMode * driverPath:string * ?pinBrowserRight0:bool -> LiveHtmlReporter
  member commonFail : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
  member failWithContext : ctx:string -> ex:Exception -> id:string -> ss:byte [] -> url:string -> unit
  member browser : IWebDriver
  member reportPath : string option
  member reportTemplateUrl : string
  ...

Full name: canopy.reporters.LiveHtmlReporter

--------------------
new : unit -> LiveHtmlReporter
new : browser:BrowserStartMode -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string -> LiveHtmlReporter
new : browser:BrowserStartMode * driverPath:string * ?pinBrowserRight0:bool -> LiveHtmlReporter
type IReporter =
  interface
    abstract member contextEnd : string -> unit
    abstract member contextStart : string -> unit
    abstract member coverage : string -> byte [] -> string -> unit
    abstract member describe : string -> unit
    abstract member fail : Exception -> string -> byte [] -> string -> unit
    abstract member pass : string -> unit
    abstract member quit : unit -> unit
    abstract member setEnvironment : string -> unit
    abstract member skip : string -> unit
    abstract member suggestSelectors : string -> string list -> unit
    ...
  end

Full name: canopy.reporters.IReporter
Multiple items
type TeamCityReporter =
  interface IReporter
  new : ?logImagesToConsole:bool -> TeamCityReporter

Full name: canopy.reporters.TeamCityReporter

--------------------
new : ?logImagesToConsole:bool -> TeamCityReporter
Multiple items
type JUnitReporter =
  interface IReporter
  new : resultFilePath:string -> JUnitReporter

Full name: canopy.reporters.JUnitReporter

--------------------
new : resultFilePath:string -> JUnitReporter