I think it would be of great benefit to many people!! ----- Original Message ----- From: "Paul Harm" <[EMAIL PROTECTED]> To: "Tapestry Developer" <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 12:04 PM Subject: RE: [Tapestry-developer] Code Coverage
> While we're on the topic: I've recently put together a bridge between > HtmlUnit (http://htmlunit.sourceforge.net/) and Tapestry via some mock > objects, such that one can write functional tests simulating a series of > request cycles, make assertions about page content, etc. (all the cool stuff > that HtmlUnit provides), without running either a browser or a servlet > container, and that lets you trace a request all the way through the > processing cycle. > > Would anyone else be interested in this? Its still a bit on the rough side, > I'll warn you (though its functional for us), and could certainly benefit > from the use of some others. > > Paul Harm > > > -----Original Message----- > > From: Christoph Sturm [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 02, 2002 10:54 AM > > To: cp; [EMAIL PROTECTED] > > Cc: Tapestry Developer > > Subject: Re: [Tapestry-developer] Code Coverage > > > > > > on the cactus homepage there's a comparision of the cactus > > approach and the mock object approach. mock objects are > > indeed a better wheel for some (most?) uses. for mock objects > > of the servlet api check out http://www.mockobjects.com/ also > > nice: http://joe.truemesh.com/mockdoclet/ > > > > regards > > chris > > ----- Original Message ----- > > From: "cp" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Cc: "Tapestry Developer" <[EMAIL PROTECTED]> > > Sent: Wednesday, October 02, 2002 5:32 PM > > Subject: Re: [Tapestry-developer] Code Coverage > > > > > > > How does this compare to just using one of the JUnit > > extensions like > > > Cactus? Sounds like you're reinventing the wheel...is it a better > > > wheel you're building? ;) > > > > > > Corey > > > > > > [EMAIL PROTECTED] wrote: > > > > > > >Yes, I have "Mock" implementations of > > > >HttpServletContext, HttpServletRequest, Session, > > > >Response, etc. > > > > > > > >I already have the first couple of simple tests. > > > > > > > >This allows me 100% control and the framework code has > > > >no idea its being tested. > > > > > > > >I expect to get most code up into the 70 - 85% range and > > > >key classes close to 100%. > > > > > > > >I definiately need this before I can try and convert > > everything over > > > >in 2.3 to the new render model needed for JSP interopability. > > > > > > > >-- > > > >[EMAIL PROTECTED] > > > > > > > >http://tapestry.sf.net > > > > > > > > > > > >>Personally I think it is absolutely fantastic. > > > >>I seem to remember that you also mentioned something about being > > > >>able to > > do > > > >>JUnit tests by simulating requests -- did I just imagine > > it or are > > > >>you > > really > > > >>working on something like that? > > > >>That would really allow testing things that are normally > > > >>"untestable". Best regards, -mb > > > >> [EMAIL PROTECTED] wrote:Any thoughts on the new code > > coverage reports? > > > >> > > > >>It's a lot of work to get good code coverage from within JUnit. > > > >> > > > >>I wired up my environment to collect code coverage from > > running the > > > >>Tutorial and was easily able to push the overall number to 66%. > > > >> > > > >>In the long run, I expect to have the best code coverage > > figures for > > > >>any open-source project out there. > > > >> > > > >>-- > > > >>[EMAIL PROTECTED] > > > >> > > > >>http://tapestry.sf.net > > > >> > > > >> > > > >>------------------------------------------------------- > > > >>This sf.net email is sponsored by: DEDICATED SERVERS only > > $89! Linux > > > >>or FreeBSD, FREE setup, FAST network. Get your own server > > today at > > > >>http://www.ServePath.com/indexfm.htm > > > >>_______________________________________________ > > > >>Tapestry-developer mailing list > > > >>[EMAIL PROTECTED] > > > >>https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > >> > > > >> > > > >>--------------------------------- > > > >>Do you Yahoo!? > > > >> > > > >> > > > >New DSL Internet Access from SBC & Yahoo! > > > > > > > > > > > >------------------------------------------------------- > > > >This sf.net email is sponsored by:ThinkGeek > > > >Welcome to geek heaven. > > > >http://thinkgeek.com/sf > > > >_______________________________________________ > > > >Tapestry-developer mailing list > > > >[EMAIL PROTECTED] > > > >https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Tapestry-developer mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Tapestry-developer mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
