One thing I couldn't find in the docs is how to have a suite add other suites.
ie I can add a test using
testSuite.addAll("path.to.my.test");
in cfcunit I can also add a suite to a suite (ie a composite of suites and tests)
This is handy as I can then run smaller suites rather than the full whack.
Can I do this? Apologies if I'm being stupid :-)
Alan
I'll look into the DirectoryTestSuite.
I'm using the Eclipse plugin and its excellent. Its actually the reason I now actually spend 50% of my time doing 'Test First' development.
Why not 100%? Old habits die hard ;-)
Look forward to v1.1.
Alan
________________________________________
From: mxu...@googlegroups.com [mxu...@googlegroups.com] On Behalf Of billy [vir...@gmail.com]
Sent: 03 May 2008 12:38
To: mxunit
Subject: [mxunit:379] Re: Test suites running other suites
tests.blog.rss
SimpleRSSTest.cfc
SomeOtherRSSThingieTest.cfc
tests.blog.comments
BlahTest.cfc
tests.blog.spamfilter
Blah2Test.cfc
and you wanted to NOT run the spamfilter tests, you could do:
<cfset dir = expandPath(".")>
<cfset DTS = createObject("component","mxunit.runner.DirectoryTestSuite")>
<cfset excludes = "spamfilter">
<cfinvoke component="#DTS#"
method="run"
directory="#dir#"
recurse="true"
excludes="#excludes#"
returnvariable="Results"
componentpath="tests">
<cfoutput>#results.getResultsOutput("extjs")#</cfoutput>
If that filtering does not work for you, please let us know.
best,
marc