Best way of running tests

46 views
Skip to first unread message

Rawlins

unread,
Jan 22, 2013, 4:54:31 AM1/22/13
to mxu...@googlegroups.com
Hello Guys,

Assuming that I'm not using Eclipse, and therefore the plugins aren't an option what is the best way of running tests?

I don't always want to run all tests, just those on modules upon which I'm working.

At the moment I just hit the tests direct from the URL, which works but is a little tedious as navigating between them requires me to reference the directory structure to find the correct suite and test.

Can anyone built an open source script that generates a nav of all tests within a directory tree or something?

Thanks,

Rob

Chris Blackwell

unread,
Jan 22, 2013, 5:31:07 AM1/22/13
to mxu...@googlegroups.com
Hi Rob,

You can use the DirectoryTestSuite to run a directory full of tests.

So if your tests are organised into modules in subdirectories then you could use <cfdirectory> to list them out and allow you to call them individually. 

Here's a simple example, https://gist.github.com/4593633

Chris



--
You received this message because you are subscribed to the Google Groups "mxunit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mxunit/-/JIupQ7FtINIJ.
To post to this group, send email to mxu...@googlegroups.com.
To unsubscribe from this group, send email to mxunit+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mxunit?hl=en.

Rawlins

unread,
Jan 22, 2013, 5:40:56 AM1/22/13
to mxu...@googlegroups.com
HI Chris,

Thanks for the suggestion - this looks like a really nice approach, I'll look at getting this running now.

Appreciate the gist too.

Rob

Rawlins

unread,
Jan 22, 2013, 5:54:17 AM1/22/13
to mxu...@googlegroups.com
I've just dropped this in and it works like a charm.

Thanks Chris - I owe you a beer.
Reply all
Reply to author
Forward
0 new messages