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 14: single-method run doesn't run setup and possibly not even the constructor
2 people starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  virtix
Closed:  Nov 2007
Cc:  marc.es...@gmail.com


 
Project Member Reported by marc.es...@gmail.com, Sep 25, 2007
What steps will reproduce the problem?
1. created a test cfc and did a createObject in both the constructor and setup
2. referenced that cfc in my test method

What is the expected output? What do you see instead?
got an error that the variable wasn't defined. to get it to work, i put the
createobject call directly in the test method and then it worked

Oct 19, 2007
Project Member #1 virtix
TestSuite.runOne(...) seems to work now. Part of the issue was that TestCase run 
methods were unecessarily calling setUp() and tearDown(), or not at all. So, I 
removede the calls there and made sure they are called in TestSuite.run() and runOne
(). 

Note: Not sure if this is CF or not, but calling setUp/tearDown from within a 
TestCase child/instance executes the _empty_ method. Should it not be executing the 
instance, that is the inherited child of mxunit.framework.TestCase?
Owner: virtix
Cc: marc.esher
Nov 4, 2007
Project Member #2 marc.es...@gmail.com
this now works fine.
Status: Verified

Powered by Google Project Hosting