Hi Sean,
On Jul 12, 2005, at 9:23 AM, Sean Schofield wrote:
Hi All,
I've just committed a couple of unit tests to the api subproject. I
will start adding a testing target to the build file later today but
I wanted to get this out there before anything else came up on my day
job.
Sounds good. You're going to add a test-all and test? Something
like that?
Yep, test-all will run all the test targets for each subproject.
I'd like to propose that we put any simple JUnit tests into the
following naming structure
${subproject.name}/tests/java/${pakcage.name}/${class.name}Test.java
subproject.name => the subproject (i.e. api, shared, etc)
package.name => the package where the class being tested resides
class.name => the name of the class being tested
Thoughts?
Thanks for taking the initiative on the testing. I am in favor of a
slightly different naming structure:
${subproject.name}/src/test/${pakcage.name}/${class.name}Test.java
That was what I was thinking when I set up src/java in the directories
(that we would eventually have src/test.) I believe this is also the
convention followed in many other ASF projects including Struts.
This sounds fine to me. svn mv should do the trick correct?
Also, I'd like to add running the unit tests and creating a report of
pass/fail to the 'dist' target so that the tests get run on every
'dist', thoughts? At some point Sean I'd also like to add the report
to the nightly build process, but we can talk about that in another
thread.
I'm thinking we might want to leave it out of dist but add it to
nightly and release (in bootstrap.xml) Lets hold off on this part
until you're done with the test targets and I'm done with bootstrap
Generating and publishing a report as part of the nightly build
would be cool.
Sounds fine, the report is easy to generate then its just a matter of
ftp'ing it to myfaces.apache.org/testresults or something like that.
For cactus tests and web tests I'll do some experimenting and make
another proposal for those.
Looking forward to that as well. I think you have the right idea
concentrating on the stand-alone junit stuff first.
-bd-
sean