Skip to content

Commit

Permalink
Merge pull request #12 from gdziadkiewicz/Test_fix
Browse files Browse the repository at this point in the history
Run_all_test fix
  • Loading branch information
gdziadkiewicz committed Jan 4, 2016
2 parents 0d9da72 + 8327a23 commit 07be0bb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,22 @@ facts("Test handling tests") do


context("Tests running") do
@pending run_all_tests(sampleTestsFilePath) --> RootNode( Vector{TestStructureNode}([
@fact run_all_tests(sampleTestsFilePath) --> RootNode( Vector{TestStructureNode}([
FactsCollectionNode(6, "First facts group",
[FactNode(7, "First group first test", test_success), FactNode(8, "First group second failing test", test_failure)]),
[
FactNode(7, "First group first test", test_success, " Success :: (line:7) :: Tests running :: First group first test :: fact was true\n Expression: 1 --> 1\n Expected: 1\n Occurred: 1"),
FactNode(8, "First group second failing test", test_failure, " Failure :: (line:8) :: Tests running :: First group second failing test :: fact was false\n Expression: 2 --> 1\n Expected: 1\n Occurred: 2")
]),
FactsCollectionNode(11,"Second facts group",
[FactNode(12, "Second group first test", test_success), FactNode(13, "", test_success)]),
[
FactNode(12, "Second group first test", test_success, " Success :: (line:12) :: Tests running :: Second group first test :: fact was true\n Expression: 1 --> 1\n Expected: 1\n Occurred: 1"),
FactNode(13, "", test_success, " Success :: (line:13) :: Tests running :: fact was true\n Expression: 2 --> 2\n Expected: 2\n Occurred: 2")
]),
FactsCollectionNode(16, "",
[FactNode(17, "", test_success), FactNode(18, "", test_failure)]),
[
FactNode(17, "", test_success, " Success :: (line:17) :: Tests running :: fact was true\n Expression: 1 --> 1\n Expected: 1\n Occurred: 1"),
FactNode(18, "", test_failure, " Failure :: (line:18) :: Tests running :: fact was false\n Expression: 2 --> 1\n Expected: 1\n Occurred: 2")
]),
FactsCollectionNode(20,"",[])
])) "Tests running"
end
Expand Down

0 comments on commit 07be0bb

Please sign in to comment.