If you have any tests written for v0.1, you will get an error when you upgrade to v0.2 because the TestRunner CFC has moved from the runner folder to the framework folder.
Fixing this is easy, in the CFML template you created to run the tests, just change this code...
<pre>
<cfinvoke component="net.sourceforge.cfunit.runner.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
</pre>
To This:
<pre>
<cfinvoke component="net.sourceforge.cfunit. framework.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
</pre>
Also, if you have a lot of code that you do not want to switch over right away, you can add a TestRunnder CFC to the /net/sourceforge/cfunit/runner folder that just extends the new TestRunner in the framework folder:
<pre>
<cfcomponent name="TestRunner" extends="net.sourceforge.cfunit.framework.TestRunner">
</cfcomponent>
</pre>
This will keep you existing test running until you have time to switch them over.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you have any tests written for v0.1, you will get an error when you upgrade to v0.2 because the TestRunner CFC has moved from the runner folder to the framework folder.
Fixing this is easy, in the CFML template you created to run the tests, just change this code...
<cfinvoke component="net.sourceforge.cfunit.runner.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
Also, if you have a lot of code that you do not want to switch over right away, you can add a TestRunnder CFC to the /net/sourceforge/cfunit/runner folder that just extends the new TestRunner in the framework folder:
<cfcomponent name="TestRunner" extends="net.sourceforge.cfunit.framework.TestRunner">
</cfcomponent>
This will keep you existing test running until you have time to switch them over.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you have any tests written for v0.1, you will get an error when you upgrade to v0.2 because the TestRunner CFC has moved from the runner folder to the framework folder.
Fixing this is easy, in the CFML template you created to run the tests, just change this code...
<pre>
<cfinvoke component="net.sourceforge.cfunit.runner.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
</pre>
To This:
<pre>
<cfinvoke component="net.sourceforge.cfunit. framework.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
</pre>
Also, if you have a lot of code that you do not want to switch over right away, you can add a TestRunnder CFC to the /net/sourceforge/cfunit/runner folder that just extends the new TestRunner in the framework folder:
<pre>
<cfcomponent name="TestRunner" extends="net.sourceforge.cfunit.framework.TestRunner">
</cfcomponent>
</pre>
This will keep you existing test running until you have time to switch them over.
If you have any tests written for v0.1, you will get an error when you upgrade to v0.2 because the TestRunner CFC has moved from the runner folder to the framework folder.
Fixing this is easy, in the CFML template you created to run the tests, just change this code...
<cfinvoke component="net.sourceforge.cfunit.runner.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
To This:
<cfinvoke component="net.sourceforge.cfunit.framework.TestRunner" method="run">
<cfinvokeargument name="test" value="#testsuite#">
<cfinvokeargument name="name" value="">
</cfinvoke>
Also, if you have a lot of code that you do not want to switch over right away, you can add a TestRunnder CFC to the /net/sourceforge/cfunit/runner folder that just extends the new TestRunner in the framework folder:
<cfcomponent name="TestRunner" extends="net.sourceforge.cfunit.framework.TestRunner">
</cfcomponent>
This will keep you existing test running until you have time to switch them over.