Skip to content

Commit

Permalink
fix(TestRunner): Adds more logoutput when a node test does not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook committed May 21, 2020
1 parent 660926b commit c4277d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion frameworkTests/source/tests/BasicTests.bs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ end function
'@It tests async tests
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

'@Only
'@Test times out
function async_timeout()
item = { "id" : "item" }
Expand Down
7 changes: 5 additions & 2 deletions src/TestRunner.bs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ public sub run()
"runtimeConfig": m.runtimeConfig
}
nodeStatResults = node.callFunc("Rooibos_RunNodeTests", args)
RBS_STATS.MergeTotalStatistic(totalStatObj, nodeStatResults)

if nodeStatResults <> invalid
RBS_STATS.MergeTotalStatistic(totalStatObj, nodeStatResults)
else
? " ERROR! The node "; nodeType; " did not return stats from the Rooibos_RunNodeTests method. This usually means you are not importing rooibosDist.brs, or rooibosFunctionMap.brs"
end if
m.testScene.RemoveChild(node)

else
Expand Down

0 comments on commit c4277d6

Please sign in to comment.