I have moved from cfcunit to mxunit and I'm loving the framework.
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.
Thanks for the kind words. You're question has come up before, so, you
are not missing anything. Currently MXUnit only allows you to add
TestCases to TestSuites. With that said, we do plan in version 1.1 to
add in this composite capability. So, that may be sometime this Summer
after CFUnited. However, in lieu of creating explicit TestSuites, many
of us have found benefit using MXUnit's DirectoryTestSuite, which can
run every test, with optional recursion, in a directory. You can
exclude specific files, too. Additionally, using the MXUnit Eclipse
plug-in, you can search for directories, load tests, and run only the
one you want. This has the distinct benefit of not having to write any
explicit TestSuites; you just keep your tests in a test directory.
Hope this helps.
bill[y]
On May 2, 9:33 am, Alan Livie <ALi...@efinancialcareers.com> wrote:
> I have moved from cfcunit to mxunit and I'm loving the framework.
> 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 :-)
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: mxunit@googlegroups.com [mxunit@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
Hi Alan,
Thanks for the kind words. You're question has come up before, so, you are not missing anything. Currently MXUnit only allows you to add TestCases to TestSuites. With that said, we do plan in version 1.1 to add in this composite capability. So, that may be sometime this Summer after CFUnited. However, in lieu of creating explicit TestSuites, many of us have found benefit using MXUnit's DirectoryTestSuite, which can run every test, with optional recursion, in a directory. You can exclude specific files, too. Additionally, using the MXUnit Eclipse plug-in, you can search for directories, load tests, and run only the one you want. This has the distinct benefit of not having to write any explicit TestSuites; you just keep your tests in a test directory.
Hope this helps.
bill[y]
On May 2, 9:33 am, Alan Livie <ALi...@efinancialcareers.com> wrote:
> I have moved from cfcunit to mxunit and I'm loving the framework.
> 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, you should be able to include entire directories in the "excludes" attribute of directory test suite, too. for example, if you had packages like this:
On Sat, May 3, 2008 at 8:01 AM, Alan Livie <ALi...@efinancialcareers.com> wrote:
> Thanks for the reply Billy.
> 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: mxunit@googlegroups.com [mxunit@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
> Hi Alan,
> Thanks for the kind words. You're question has come up before, so, you > are not missing anything. Currently MXUnit only allows you to add > TestCases to TestSuites. With that said, we do plan in version 1.1 to > add in this composite capability. So, that may be sometime this Summer > after CFUnited. However, in lieu of creating explicit TestSuites, many > of us have found benefit using MXUnit's DirectoryTestSuite, which can > run every test, with optional recursion, in a directory. You can > exclude specific files, too. Additionally, using the MXUnit Eclipse > plug-in, you can search for directories, load tests, and run only the > one you want. This has the distinct benefit of not having to write any > explicit TestSuites; you just keep your tests in a test directory.
> Hope this helps.
> bill[y]
> On May 2, 9:33 am, Alan Livie <ALi...@efinancialcareers.com> wrote: > > I have moved from cfcunit to mxunit and I'm loving the framework.
> > 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 :-)