Skip to content

Commit

Permalink
Fix for &&&&& #195
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed May 20, 2015
1 parent 73251c1 commit 4901e2a
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 6 deletions.
7 changes: 5 additions & 2 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
#### 0.9.22 - March 4 2015
* Updated to Selenium 2.45, thanks @pottereric

#### 0.9.23 - May 15 2015
#### 0.9.23 - May 18 2015
* Added &&&&& (always) tests which will run in both normal mode and wip mode [Issue #195](https://github.com/lefthandedgoat/canopy/issues/195)
* Added runFor which lets you run the same set of tests for multiple browsers [Issue #190](https://github.com/lefthandedgoat/canopy/issues/190)
* Added runFor which lets you run the same set of tests for multiple browsers [Issue #190](https://github.com/lefthandedgoat/canopy/issues/190)

#### 0.9.24 - May 19 2015
* Fixed bug related to new &&&&& (always) operator [Issue #195](https://github.com/lefthandedgoat/canopy/issues/195)
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.23")>]
[<assembly: AssemblyFileVersionAttribute("0.9.23")>]
[<assembly: AssemblyVersionAttribute("0.9.24")>]
[<assembly: AssemblyFileVersionAttribute("0.9.24")>]
do ()

module internal AssemblyVersionInformation =
let [<Literal>] Version = "0.9.23"
let [<Literal>] Version = "0.9.24"
2 changes: 1 addition & 1 deletion src/canopy/runner.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ let run () =

//run only wips if there are any
if suites |> List.exists (fun s -> s.Wips.IsEmpty = false) then
suites <- suites |> List.filter (fun s -> s.Wips.IsEmpty = false)
suites <- suites |> List.filter (fun s -> s.Wips.IsEmpty = false || s.Always.IsEmpty = false)

suites
|> List.iter (fun s ->
Expand Down
3 changes: 3 additions & 0 deletions tests/basictests/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ reporter <- new LiveHtmlReporter(Chrome, configuration.chromeDir) :> IReporter

failFast := true

file1.all()
file2.all()

context "context1"
once (fun _ -> Console.WriteLine "once")
before (fun _ -> Console.WriteLine "before")
Expand Down
2 changes: 2 additions & 0 deletions tests/basictests/basictests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
</Choose>
<Import Project="$(FSharpTargetsPath)" Condition="Exists('$(FSharpTargetsPath)')" />
<ItemGroup>
<Compile Include="file1.fs" />
<Compile Include="file2.fs" />
<Compile Include="Program.fs" />
<None Include="app.config" />
<None Include="packages.config" />
Expand Down
17 changes: 17 additions & 0 deletions tests/basictests/file1.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module file1

open canopy
open runner

let testpage = "http://lefthandedgoat.github.io/canopy/testpages/"

let all() =
context "file1"

"from file 1 2" &&& fun _ ->
url testpage
"#welcome" == "Welcome"

"from file 1 2" &&& fun _ ->
url testpage
"#welcome" == "Welcome"
17 changes: 17 additions & 0 deletions tests/basictests/file2.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module file2

open canopy
open runner

let testpage = "http://lefthandedgoat.github.io/canopy/testpages/"

let all() =
context "file2"

"from file 2 1" &&&&& fun _ ->
url testpage
"#welcome" == "Welcome"

"from file 2 2" &&&&& fun _ ->
url testpage
"#welcome" == "Welcome"

0 comments on commit 4901e2a

Please sign in to comment.