You cannot post messages because only members can post, and you are not currently a member.
Description:
This is the discussion group for MXUnit, a unit test framework for ColdFusion (CFMX) components. It's based on the popular JUnit unit test framework for java. This list is for questions about this product and unit testing in general.
|
|
|
New MXUnit HTML Runner
|
| |
Some of you requested a simple HTML Runner ala CFCUnit. We've added
this to the repository. Please check it out. This will also be in the
upcoming 1.0 release later this week.
Required New Files:
[link]
[link]... more »
|
|
Setting up MXUnit ...getting a bit confused
|
| |
Hi everyone,
I'm trying to setup MXUnit (in Eclipse) and getting a bit confused
about how I should be setting up my files and configuring the plugin.
This is how I've got things setup at the moment, hope this makes
sense:
CFMX7 - multiserver configuration with three instances:
Instance Name / URL : port... more »
|
|
Testing Complex Query + Email
|
| |
I have done a little unit testing so far with basic code, but I hit a
new challenge today.
I am trying to figure out how to write unit tests for some complicated
SQL that will return several rows as well as for the email messages
that will be sent out by the same component.
I know that I could manually create a query, but that would assume... more »
|
|
question about mxUnit docs
|
| |
In "A Test Adapter Pattern for DAO Testing" - there is a reference to
creating a 'protected' method in Coldfusion - am I missing something
or should this be 'private'?
|
|
Setting Up Open Blue Dragon
|
| |
This is a bit off topic, but may be of interest. I wrote some
rudimentary instructions on how to setup Open Blue Dragon on Tomcat
and JBoss. For me, it was straightforward to get up and running and to
test mxunit.
Please feel free to comment and suggest improvements:
[link]... more »
|
|
Ant task and directory
|
| |
Please forgive me if this has been discussed before, but I can't find
anything in either the archived messages or the bug tracker. I had to
make a change to the HttpAntRunner.cfc to get my Ant script to work,
so either I found a bug or I'm doing something wrong.
Whenever I use the <directory> element to specify where to fnd the... more »
|
|
bug in mxunit eclipse plugin
|
| |
Hi - I am trying out MXunit, great stuff so far. I have installed
mxUnit in a sub-folder of a virtual directory called 'devtools'. When
trying out the eclipse plugin, the error I got stated that it could
not find the 'interface or component evtools.mxunit.framework....'
When I created a cf mapping evtools which pointed to the devtools... more »
|
|
Testing Queries
|
| |
What do you guys use to create dummy queries? My use case is that I
want to make sure the data that the query a method is returning is
correct. I know I can use QueryNew() and add cells and so on, I was
wondering if there was an easier way or at least one that looks
prettier. I've heard of "querysim" as a custom tag, but I haven't... more »
|
|
Best practice - testing private methods
|
| |
I have been refactoring some methods and applying 'compose method' pattern to some of them ie breaking up the big public method into one public method at a higher level that calls lots of small private methods to do the work. This makes the code more readable and easier to test. I am also aware of a 'best practice', especially among the JUnit crowd that says you shouldn't unit test private methods (a Google search shows lots of opinions on the subject)... more »
|
|
Test suites running other suites
|
| |
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.t est"); 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.... more »
|
|
|