Issue 39: Ability to exlude directories in DirectoryTestSuite
Status:  Fixed
Owner:
Closed:  Jan 2008
Cc:
Project Member Reported by virtix, Dec 30, 2007
It would be helpful to be able to exclude directories in addition to
individual files in mxunit.runner.DirectoryTest suite. This is apparent
when looking at tests that depend upon a subdirectory of fixtures, that are
static and should not be tested. So, maybe the exludes attribute might look
like:
excludes="myfile.cfc,myotherfile.cfc,mydir,fixture"

I'll try to look into it today.

 
Jan 16, 2008
Project Member #1 marc.es...@gmail.com
this is now in place. it will exclude single tests, directories and their subdirectories

so if you have:

tests/runner
tests/framework
tests/framework/someSubDir

you can pass "framework" to exclude everything underneath framework (and all its subdirs)

or "someSubDir" to exclude everything underneath someSubDir

if you have

tests/business/Library
tests/interface/Library

and you want to exclude just interface/library, you pass "interface/Library".

the downside:

right now, it's not that smart. if the test is "some.dir.TestMyLibrary", and if you
pass "library" as an excludes, it'll flag it and exclude it.

This is something i have to work on but not something i'm terribly concerned about
right now. i'm not trying to rewrite ant for christ's sake.
Status: Fixed
Owner: marc.esher
Cc: -marc.esher virtix
Jan 16, 2008
Project Member #2 marc.es...@gmail.com
now it properly handles the boundaries, so if you have "TestLibrary" and pass
"library" as an excludes, it won't flag it.