My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 17: Add debug array to TestResult/TestCase
  Back to list
Status:  Fixed
Owner:  virtix
Closed:  Oct 2007
Cc:  marc.es...@gmail.com


 
Project Member Reported by virtix, Oct 5, 2007
To capture state (debug output) prior assertion failure:

<cfscript>
  <cfset debug(MyStruct) />
  <cfset debug(MyQuery)  />
</cfscript> 
------- 
Then in test results  

<cfdump var="#debugarray#"> 
Oct 19, 2007
Project Member #1 virtix
Added debug array to TestResult.resultItem and is accessible using 
TestResult.getDebug() method. Should return an array of objects for a given test 
method. It's called as specified in the test case ... debug(obj) and is subsequently 
available after the test has run. However, being particularly foggy in the head 
today, it may be difficult to test via TestCase, because the run() executes the 
method first, adding debug info insode the method, and _then_ adds the debug stuff 
to the result object after the test has executed. So, TestCase.result.getDebug() is 
NULL. But, TestCase.debug(), TestCase.getDebug(), works ...
Oct 30, 2007
Project Member #2 virtix
(No comment was entered for this change.)
Status: Fixed

Powered by Google Project Hosting