Skip to content

Commit

Permalink
Fix #219 add nmany
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Nov 4, 2015
1 parent 2f3cdfa commit 2a0de9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,6 @@ Fix a bug in html reporter trying to describe json, it would fail to because the

#### 0.9.39 - October 22 2015
Fix a bug in the bug I fixed in 0.9.38 [Issue #218](https://github.com/lefthandedgoat/canopy/issues/218)

#### 0.9.40 - November 4 2015
Added nmany to let you run many tests with a name [Issue #219](https://github.com/lefthandedgoat/canopy/issues/219)
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.39")>]
[<assembly: AssemblyFileVersionAttribute("0.9.39")>]
[<assembly: AssemblyVersionAttribute("0.9.40")>]
[<assembly: AssemblyFileVersionAttribute("0.9.40")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "0.9.39"
let [<Literal>] Version = "0.9.40"
3 changes: 3 additions & 0 deletions src/canopy/runner.fs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ let wip f = null &&&& f
let many count f =
let lastSuite = incrementLastTestSuite()
[1 .. count] |> List.iter (fun _ -> lastSuite.Manys <- Test(null, f, lastSuite.TotalTestsCount)::lastSuite.Manys)
let nmany count description f =
let lastSuite = incrementLastTestSuite()
[1 .. count] |> List.iter (fun _ -> lastSuite.Manys <- Test(description, f, lastSuite.TotalTestsCount)::lastSuite.Manys)
let ( &&! ) description f =
let lastSuite = incrementLastTestSuite()
lastSuite.Tests <- Test(description, skipped, lastSuite.TotalTestsCount)::lastSuite.Tests
Expand Down

0 comments on commit 2a0de9c

Please sign in to comment.