http://www.barneyb.com/barneyblog/2007/07/13/schema-tool-update/
This is quite a useful tool for managing database migrations.
Mark F
~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active progra
Here is the ant script that I was referring to & the properties file that
powers it. Also included are the caveats that I gave Janet:
A few caveats:
1. It is targeted specifically to MSSQL.
2. I am using the open source JTDS drivers (
http://jtds.sourceforge.net/) to access our databases.
Could someone post Rick's script? I am very interested in looking @ it.
Thanks,
~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfus
>+1 to dbunit. You also have the option of wrapping each unit test in a
>transaction and then rolling it back at the end.
>
>Jaime Metcher
Yes, that works too. In this case dbUnit's restore capability is a better fit.
I got a good quickstart to dbUnit thanks to Rich's script and I'm really liki
: SOT: Rollback db changes in CFCUnit/CFUnit tests
>
>
> Does anyone know of an article(s) explaining how to work
> rollbacks into unit testing? I want to test a series of DAO's,
> but am not sure how to incorp
> Rich,
>
> That would be great. Thanks.
>
> Janet
No problem. It should be on its way. Let me know if I can be of any more
help.
Rich Kroll
~|
Get involved in the latest ColdFusion discussions, product
development sharing
Rich,
That would be great. Thanks.
Janet
~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archi
> Thanks Rich. That is helpful. Off to download and review DBUnit.
>
> Thanks,
> Janet
Janet,
If you would like, I have a (work in progress) ant build file that uses
dbunit's ant task to export / reset my database. I would be happy to email
it to you offlist if you think it might be useful.
HT
On 10/4/07, Janet MacKay <[EMAIL PROTECTED]> wrote:
> Does anyone know of an article(s) explaining how to work rollbacks into unit
> testing? I want to test a series of DAO's, but am not sure how to incorporate
> this into my tests.
Broadly speaking, depending on what you're testing, mock object
Thanks Rich. That is helpful. Off to download and review DBUnit.
Thanks,
Janet
~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/
> Thanks. I'm new to unit testing in general, so sorry if this is a dumb
> question :) .. I think I understand the concept of DBUnit, but I can't
> visualize where it fits into picture. Are DBUnit tests something separate,
> written in java, or do they somehow tie into my CFU
ere
it fits into picture. Are DBUnit tests something separate, written in java, or
do they somehow tie into my CFUnit/CFCUnit tests? Can you give me a high-level
description of how it hooks into the process?
Janet
~|
> Does anyone know of an article(s) explaining how to work rollbacks into
> unit testing? I want to test a series of DAO's, but am not sure how to
> incorporate this into my tests.
>
> Janet
>
You can incorporate a tool like DBUnit into your workflow
(http://dbunit.sourceforge.net/).
HTH,
Rich
Does anyone know of an article(s) explaining how to work rollbacks into unit
testing? I want to test a series of DAO's, but am not sure how to incorporate
this into my tests.
Janet
~|
ColdFusion 8 - Build next generation apps
o: CF-Talk
Subject: Re: what's the magic version combination: eclipse/cfeclipse/cfunit
>Welcome to CFE, prepare to become an evangelist ;)
>
>Rich Kroll
Okay, but I draw the line at wearing funny hats and walking door-to-door
h
>Welcome to CFE, prepare to become an evangelist ;)
>
>Rich Kroll
Okay, but I draw the line at wearing funny hats and walking door-to-door
handing out leaflets ;-)
~|
ColdFusion is delivering applications solutions at at top co
> I installed eclipse 3.3, downloaded CFEclipse 1.3.1.5 and it works great.
> I just had to tweak my shortcut target so eclipse used jre 1.5 (not 1.4.2)
>
> eclipse -vm C:\jre1.5.0_11\bin\javaw.exe
>
> Thanks again Rich
Glad you got it working!
Welcome to CFE, prepare to become an evangelist
I installed eclipse 3.3, downloaded CFEclipse 1.3.1.5 and it works great. I
just had to tweak my shortcut target so eclipse used jre 1.5 (not 1.4.2)
eclipse -vm C:\jre1.5.0_11\bin\javaw.exe
Thanks again Rich
~|
ColdFusion is
Is anyone using CFEclipse 1.3.1.5 with Eclipse 3.2.0? I tried to install the
plugin several times using Software Updates -> Find and Install option. But I
get a ClassNotFoundException when opening the CFUnit perspective. Did I
overlook a requirement or is there a better combination of versi
Thanks Rich. I'll try 3.3. What jvm/jre are you using?
~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8
Ar
I am currently running eclipse 3.3 with CFE 1.3.1.5. I installed 3.3 and
then used the internal update tools (help > software updates > find &
install) to install CFE. I'm using the CFUnit view to run unit tests
successfully.
Why is it everytime I post a problem I solve it two minutes later.
The issue is that CFUnit only appears to work if it's at the top of the
classpath dialog. Without this it seems to fall on it's backside.
Neil
On 11/22/06, Neil Middleton <[EMAIL PROTECTED]> wrote:
>
>
I'm just getting into using CFUnit with the ANT integration (lazy developers
are a PITA).
Trouble is, we are developing against a shared server - so when I run my Ant
script from my local machine I get an error saying that the build failed
because it can't locate CFUnit. I'm g
I'm trying to get hold of the CFUNIT code, but the download page on
sourceforge.net seems to be unavailable?
Does anyone have the download available somewhere else?
Thanks
--
Mike T
Blog http://www.socialpoints.com/
~|
Me
Jeff Chastain <[EMAIL PROTECTED]> wrote:
> testIsNullID(crTracker2._com.test.propertyTest): : expected:<...>
>but was:<...>
I have fixed this issue in the CVS version of CFUnit. This fix will be
included in the next release.
Thanks for bring
ean said, what is
>the '...' as a value?
>
>-- Jeff
The CFUnit outputs will try to trim down longer strings so that if you only see
the part that is different. For example, if you had these two strings:
expected = "Hello World, My name is Rob";
actual = "Hello
n the
Application.cfc file in every test case thus making changes more difficult
down the road when a data source or mapping change.
Thanks
-- Jeff
-Original Message-
From: Paul Kenney [mailto:[EMAIL PROTECTED]
Sent: Friday, November 25, 2005 11:58 PM
To: CF-Talk
Subject: Re: CFUnit
Jeff,
cfcUnit and CFUnit are a bit different in how assertions are made. In CFUnit
(like JUnit) there is a single function name "asserEquals". JUnit can take
advantage of method overloading, so a single method name with different
argument types will work. CFUnit takes the same approac
>> testIsNullID(crTracker2._com.test.propertyTest): : expected:<...> but
was:<...>
>> Do you really mean you get ... in the values?
Yes, this is copied verbatim and that is what really threw me. What in the
world does that mean?
Robert - I will try out some of your suggestions, but as Sean said,
(The form messed up my last post, so let me try it agian via email,
sorry for the double post)
Jeff Chastain <[EMAIL PROTECTED]> wrote:
>Well, the reason I was going with the assertEqualsBoolean() was, how can an
>equality test tell if a given string is a string or a boolean type? I am
>getting t
>Well, the reason I was going with the assertEqualsBoolean() was, how can an
>equality test tell if a given string is a string or a boolean type? I am
>getting the following failure ...
>
> testIsNullID(crTracker2._com.test.propertyTest): : expected:<...>
>but was:<...>
>
>... which I assume
On 11/25/05, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> Well, the reason I was going with the assertEqualsBoolean() was, how can an
> equality test tell if a given string is a string or a boolean type? I am
> getting the following failure ...
>
> testIsNullID(crTracker2._com.test.propertyT
Well, the reason I was going with the assertEqualsBoolean() was, how can an
equality test tell if a given string is a string or a boolean type? I am
getting the following failure ...
testIsNullID(crTracker2._com.test.propertyTest): : expected:<...>
but was:<...>
which I assumed had
On 11/25/05, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> I am needing a bit of help with CFUnit from those more experienced. I have a
> cfc function that returns a boolean. Looking through the CFUnit code, I
> found the 'assertEqualsBoolean' which I thought might be
I am needing a bit of help with CFUnit from those more experienced. I have
a cfc function that returns a boolean. Looking through the CFUnit code, I
found the 'assertEqualsBoolean' which I thought might be an equality test
for 2 boolean values. I have checked that my function
Apologies if this comes through twice - I sent it a couple of hours ago and
have not seen it on the list yet, so I am sending it via the web site.
I am needing a bit of help with CFUnit from those more experienced. I have a
cfc function that returns a boolean. Looking through the CFUnit code
That did is Sean. Is this what the primer document says am I miss-read it, or
does something need fixing there?
As far as the mailing list goes, yes, there appears to be a [EMAIL PROTECTED],
but there are only a handful of posts there.
Thanks
-- Jeff
~~
On 11/21/05, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> This is a cross post from the CFUnit list because there did not appear to be
> much traffice there.
There's a CFUnit mailing list???
> I am working on my first CFUnit test. I went through the primer document
> ste
Yeah, I recognize that there should not be much use to a test for a basic bean
object, but I figured it would be as good of a place as any to start working
with CFUnit since it should be so basic.
Thanks Sean for the advice, I will use that approach.
-- Jeff
This is a cross post from the CFUnit list because there did not appear to be
much traffice there. I am working on my first CFUnit test. I went through the
primer document step by step and I believe I did everything write. However,
when I attempt to execute the test cfm page, I get the
> So, I go to write a unit test around a simple bean object. First test,
> setName(name) Okay, obviously I need to pass in a string to this
> method, but as it is a setter, it does not return anything. So, what
> am I really testing here ... that the method does not blow up, or how
> wou
On 11/18/05, Jeff D. Chastain <[EMAIL PROTECTED]> wrote:
> So, I go to write a unit test around a simple bean object. First test,
> setName(name)
> Okay, obviously I need to pass in a string to this method, but as it is a
> setter, it does not
> return anything. So, what am I really testin
On 11/18/05, Jeff D. Chastain <[EMAIL PROTECTED]> wrote:
> So, I go to write a unit test around a simple bean object. First test,
> setName(name) Okay, obviously I need to pass in a string to this method,
> but as it is a setter, it does not return anything. So, what am I really
> testing
I downloaded and have been playing with CFUnit as unit tests have always been
one of those things I should do but never got around to. I read through the
primer document and it looks simple and straight-forward ... of course, so is
the example. Basic examples are nice, but sometimes they
At the request of the manager of the CFUnit project
(http://sourceforge.net/projects/cfunit) I've set up a CFUnit list on House of
Fusion. You can subscribe at:
http://www.houseoffusion.com/cf_lists/subscribe.cfm/forumid:51
and post to [EMAIL PROTECTED]
Please visit the project home pa
Ahh, there is an example buired in the .zip, as follows:
setSuiteName("Test Suite");
addTest("com.macromedia.cfunit.meta_test_1");
addTest("com.macromedia.cfunit.meta_test_2");
Might be worth updating the devNet / .in zip docs to make this more obvious.
--
Here is a little test suite I used for "meta" testing the test suite:
setSuiteName("Meta Test Suite");
addTest("com.macromedia.cfunit.meta_test_1");
addTest("com.macromedia.cfunit.meta_test_2");
Make a direct HTTP request to this component just like you wo
The docs are slightly lacking in how to group test cases together into a
suite, I've tried creating a component like:
setSuiteName('Test Suite for CEO');
addTest('com.bluefinger.tests.a_test.test_checkPass_fails');
addTest('com.bluefinger.tests.b_test.test_checkVehicleTelIsFree_fails')
You will still be able to buy DRK 3 individually.
mike chambers
[EMAIL PROTECTED]
- Original Message -
From: "Thomas Chiverton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 11:24 AM
Subject: CFUnit availdible ?
On Wednesday 09 Jul 2003 15:49 pm, Mike Chambers wrote:
> They are listed on the exchange, but are still only available on the DRK.
Oh, I must have mis-read then.
As DevNet subs start with the most recent DRK, if you wait[*] till DRK 4 to
subscribe, you can never get CFUnit ?!?
--
Thoma
On Monday 07 Jul 2003 16:12 pm, webguy wrote:
> Agreed. WG
> > MM, Please make CFunit free, paying $1499 for this is a lot of money (and
Ditto'ed.
Although there is a lot of 'cool stuff' in the DRK, the lead time on a project
that would use them is quite large (GUI&
projects in the DRKs gets more people thinking about CF.
I have no issue paying $99 for something this effective. At a low end, even
if my rate was $25/hour, I wouldn't be likely to pull off as effective a
CFUnit type of tool in 4 hours as what is available on the DRK.
OTOH, I'
On Monday, July 7, 2003, at 11:01 AM, Neil Middleton wrote:
> MM, Please make CFunit free, paying $1499 for this is a lot of money
> (and I
> don't really want the rest of the stuff in there).
$1,499 is the cost of a DevNet Professional subscription. That will
get you DRK 3, bu
Seans older cf testing tags are here
http://corfield.org/index.php?fuseaction=coldfusion.resources
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: 07 July 2003 16:25
To: CF-Talk
Subject: RE: CFUnit
> One Question, why oh why do MM charge for CFUnit?
I certai
> I guess I'm just not one of those people who feel
> everything
> should be free. ;)
Neither am I, but I have trouble justifying to my boss the cost for just two
CFC's (admittedly the functionality is worth more). I (and I reckon I'm not
alone here) do not require/want/need any of the other ap
> One Question, why oh why do MM charge for CFUnit?
I certainly do NOT speak for MM - but I can say that the cost is worth
it. Develop time was put into this code, along with the other projects
on the DRK. I guess I'm just not one of those people who feel everything
should be free. ;) Tak
Agreed. WG
> One Question, why oh why do MM charge for CFUnit?
> Surely, by giving it away, and thus improving the quality of the CF out
> there, they would be improving the CF name in the way that they are
> marketing it.
>
> MM, Please make CFunit free, paying $1499 for this
One Question, why oh why do MM charge for CFUnit?
Surely, by giving it away, and thus improving the quality of the CF out
there, they would be improving the CF name in the way that they are
marketing it.
MM, Please make CFunit free, paying $1499 for this is a lot of money (and I
don't r
>
> Whether you roll your own or pick up DRK 3, as you already know, unit
> testing is very cool, and well worth the extra time it takes. Let me
> know if you have any questions about anything else on the DRK.
>
I just want to +1 this. CFUnit is, imho, very cool, and one of t
On Friday, July 4, 2003, at 01:08 PM, Andre Mohamed wrote:
> Thanks for filling in the blanks. I may implement my own version at
> some
> point or begrudgingly hand over some money to get the DRK as it also
> appears to have some other great stuff.
Whether you roll your own or pick up DRK 3, as
l Message-
From: Christian Cantrell [mailto:[EMAIL PROTECTED]
Sent: 04 July 2003 16:25
To: CF-Talk
Subject: Re: CFUnit
On Friday, July 4, 2003, at 04:55 AM, Andre Mohamed wrote:
> Although I haven't got the DRK or seen the code for CFUnit, what I
> gather from Christian's artic
> CFUnit is designed to introduce the concept of unit testing to ColdFusion
> developers and provide them with a sound, straightforward implementation
> which can be extended as necessary.
In that case (pun intended), maybe your could get MM it release it
separately to the DRK. I'
On Friday, July 4, 2003, at 04:55 AM, Andre Mohamed wrote:
> Although I haven't got the DRK or seen the code for CFUnit, what I
> gather from Christian's article is that the CFUnit "framework" is
> merely
> just one single CFC
There are two components: test_ca
On Friday, July 4, 2003, at 03:55 AM, Thomas Chiverton wrote:
> What license was junit under ?
IBM's Public License, Version 1.0:
http://www.opensource.org/licenses/ibmpl.php
Christian
~|
Archives: http://www.houseoffusion.com
Try www.junit.org?
-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
Sent: 04 July 2003 08:56
To: CF-Talk
Subject: Re: CFUnit
On Thursday 03 Jul 2003 23:43 pm, Christian Cantrell wrote:
> I wrote the code (it is not based on anyone else's work), but the
>
Although I haven't got the DRK or seen the code for CFUnit, what I
gather from Christian's article is that the CFUnit "framework" is merely
just one single CFC!! i.e. it is vastly simplified compared with JUnit.
Again, this is mostly guess work but it probably goes something
On Thursday 03 Jul 2003 23:43 pm, Christian Cantrell wrote:
> I wrote the code (it is not based on anyone else's work), but the
> concept is based on the JUnit testing framework:
What license was junit under ?
http://junit.sourceforge.net/cpl-v10.html is a 404...
--
Thomas C
Advanced ColdFusion
On Thursday, July 3, 2003, at 12:36 PM, Robertson-Ravo, Neil (RX) wrote:
> Did he do it though? Is it a total new development by MM or is it a
> redevelopment of someone elses work
I wrote the code (it is not based on anyone else's work), but the
concept is based on the JUnit testing framework:
I have not yet looked at CFUnit, but it sounds like it is at
least conceptually derived from JUnit (which I find invaluable)
and its offspring. If so, I think it's unfortunate that MM does
not see fit to contribute CFUnit back to the community from which
they derived their inspiratio
ed I think? ) in cf I'd love to see it.
testing custom tags, I guess would be easier as you can look for the output
your are expecting.
What can you do/test with the DRK CFunit?
> Unfortunately, there are some of us that can't afford the DRKs!!
Well I'd prefer an ipod.
WG
there are some of us that can't afford the DRKs!!
André
-Original Message-
From: webguy [mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:49
To: CF-Talk
Subject: RE: CFUnit
Anyway to get this without the drk ?
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED
)
[mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:38
To: CF-Talk
Subject: RE: CFUnit
not a dig...just curious on how the MM thought process is done.
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:36
To: CF-Talk
Subject: RE: CFUnit
Did he
Anyway to get this without the drk ?
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:33
To: CF-Talk
Subject: RE: CFUnit
Christian Cantrall. And it rocks. I _love_ the unit tester (and even
added some more stuff to it
not a dig...just curious on how the MM thought process is done.
-Original Message-
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:36
To: CF-Talk
Subject: RE: CFUnit
Did he do it though? Is it a total new development by MM or is it a
redevelopment of
Did he do it though? Is it a total new development by MM or is it a
redevelopment of someone elses work
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: 03 July 2003 17:33
To: CF-Talk
Subject: RE: CFUnit
Christian Cantrall. And it rocks. I _love_ the unit
; Sent: Thursday, July 03, 2003 10:30 AM
> To: CF-Talk
> Subject: CFUnit
>
>
> Anyone got any ideas who came up with the CFUnit stuff on the
> DRK3?
~|
Archives: http://www.houseoffusion.com/cf_lists
Anyone got any ideas who came up with the CFUnit stuff on the DRK3?
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forum
77 matches
Mail list logo