Skip to content

Commit

Permalink
Fix #255
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Apr 5, 2016
1 parent ad74b10 commit 72f0d39
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ Fix issue with encoding on the command line [Issue #252](https://github.com/left
#### 0.9.50 - March 27 2016
Fix issue with multiple dropdowns with same values [Issue #253](https://github.com/lefthandedgoat/canopy/issue/253)


#### 0.9.51 - April 5 2016
Add onPass and OnFail hooks, thanks Tony! [Issue #254](https://github.com/lefthandedgoat/canopy/issue/254)
Add onPass and OnFail hooks, thanks Tony! [Issue #254](https://github.com/lefthandedgoat/canopy/issue/254)

#### 0.9.52 - April 5 2016
make safelyGetUrl safery, thanks Tony! [Issue #255](https://github.com/lefthandedgoat/canopy/issue/255)
6 changes: 3 additions & 3 deletions src/canopy/AssemblyInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ open System.Reflection
[<assembly: AssemblyTitleAttribute("canopy")>]
[<assembly: AssemblyProductAttribute("canopy")>]
[<assembly: AssemblyDescriptionAttribute("F# web testing framework")>]
[<assembly: AssemblyVersionAttribute("0.9.51")>]
[<assembly: AssemblyFileVersionAttribute("0.9.51")>]
[<assembly: AssemblyVersionAttribute("0.9.52")>]
[<assembly: AssemblyFileVersionAttribute("0.9.52")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "0.9.51"
let [<Literal>] Version = "0.9.52"
4 changes: 3 additions & 1 deletion src/canopy/runner.fs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ let fail (ex : Exception) (test : Test) (suite : suite) autoFail url =
reporter.fail ex test.Id Array.empty url
suite.OnFail()

let safelyGetUrl () = if browser = null then "no browser = no url" else browser.Url
let safelyGetUrl () =
if browser = null then "no browser = no url"
else try browser.Url with _ -> "failed to get url"

let failSuite (ex: Exception) (suite : suite) =
let reportFailedTest (ex: Exception) (test : Test) =
Expand Down

0 comments on commit 72f0d39

Please sign in to comment.