Issue 105: Tests that extend Other Tests Fail
Project Member Reported by virtix, Apr 17, 2008
What steps will reproduce the problem?
1. Create a working test that extends mxunit.framework.TestCase
2. Create another test that extends #1
3. Run ...

What is the expected output? 
Results from #2

What do you see instead?

Parameter 2 of function Left which is now 0 must be a positive integer
 
The error occurred in C:\CFusionMX7\wwwroot\mxunit\framework\TestCase.cfc:
line 31

29 :     this.installRoot = ''; //Directly under webroot. What about
mappings or virtual directories?
30 :    } else {
31 :     this.installRoot = left(this.extendsPath, len(this.extendsPath) -
len('mxunit.framework.TestCase')-1 );
32 :    }
33 :    

----------------------------------------------------------
Problem: *Missing Test* I did not have a test that tests cases where
anything other that *.mxunit.framework.TestCase was extended.

The solution is/was to use the ComponentUtils.getComponentRoot(); instead
of the existing logic in TestCase constructor. Simple refactoring.

Issue also may be related to install issue.

 
Apr 25, 2008
Project Member #1 virtix
My tests show this was ok and have not heard anything to the contrary. So ... closing
it fer now ...
Status: Fixed