RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:40 AM, "Ilya Kazakevich" wrote: > That is action logic, not view itself. Sure, unless there's a bug in the view layer, which is why it gets tested. Dave

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 09:29 -0400, Dave Newton wrote: > On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > > There should not be logic in view. If there is no logic -- there is > nothing > > to test:) > > Sure there is, and I'm not even including JavaScript-based functionality. > Are the right t

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, May 20, 2011 5:29 PM To: Struts Users Mailing List Subject: RE: S2 TEst Best Practices On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > There should not be logic in view. If there is no logic -- there is nothing >

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
;Ilya Kazakevich" Date: Fri, 20 May 2011 17:25:46 To: 'Struts Users Mailing List' Reply-To: "Struts Users Mailing List" Subject: RE: S2 TEst Best Practices Upper level functional tests. But it is not a really good idea. I believe view layer (templates) should be as simp

RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:26 AM, "Ilya Kazakevich" wrote: > There should not be logic in view. If there is no logic -- there is nothing > to test:) Sure there is, and I'm not even including JavaScript-based functionality. Are the right things displayed? Does the UI reflect proper state? Is the flow correc

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
Original Message- From: Miguel [mailto:mig...@almeida.at] Sent: Friday, May 20, 2011 5:18 PM To: Struts Users Mailing List Subject: RE: S2 TEst Best Practices On Fri, 2011-05-20 at 15:38 +0400, Ilya Kazakevich wrote: > Hello, > > In pure struts your action is just a presenter (see M

[OT] RE: S2 TEst Best Practices

2011-05-20 Thread Dave Newton
On May 20, 2011 9:18 AM, "Miguel" wrote: > An interesting view on this from Gojko Adzic seems to almost suggest > these tests should be avoided: I read it more as "do them right". Dave

RE: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 15:38 +0400, Ilya Kazakevich wrote: > Hello, > > In pure struts your action is just a presenter (see MVP pattern). So you can > test it using unit testing engines like testNG and jUnit. > > For GUI testing you can use selenium. Ilya, what kind of tests do you usually run w

RE: S2 TEst Best Practices

2011-05-20 Thread Ilya Kazakevich
al Message- From: Frans Thamura [mailto:fr...@meruvian.org] Sent: Friday, May 20, 2011 11:52 AM To: Struts Users Mailing List Subject: S2 TEst Best Practices hi all thx to john geppe that gave us a lot of example based on his jquery, esp to change the cimande project with total jquery plug

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
; Subject: Re: S2 TEst Best Practices On Fri, 2011-05-20 at 16:41 +0700, Frans Thamura wrote: > my idea to setup jenkins/hudson server > > so we can test it there > > can TDD do this? > TDD stands for test driven development. It is a development methodology. The end result

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
On Fri, 2011-05-20 at 16:41 +0700, Frans Thamura wrote: > my idea to setup jenkins/hudson server > > so we can test it there > > can TDD do this? > TDD stands for test driven development. It is a development methodology. The end result is (better and working) code and (more) tests. So of cours

Re: S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
my idea to setup jenkins/hudson server so we can test it there can TDD do this? F On Fri, May 20, 2011 at 4:38 PM, Miguel wrote: > Hi Frans, > On Fri, 2011-05-20 at 14:52 +0700, Frans Thamura wrote: > >> >> and i have several question, and i think that is good if we can share it here >> >> i

Re: S2 TEst Best Practices

2011-05-20 Thread Miguel
Hi Frans, On Fri, 2011-05-20 at 14:52 +0700, Frans Thamura wrote: > > and i have several question, and i think that is good if we can share it here > > i want to know, the test mechanisme , best practices of testing in Struts2 > world > I work in TDD, which means I write the tests first and t

S2 TEst Best Practices

2011-05-20 Thread Frans Thamura
hi all thx to john geppe that gave us a lot of example based on his jquery, esp to change the cimande project with total jquery plugins and i have several question, and i think that is good if we can share it here i want to know, the test mechanisme , best practices of testing in Struts2 world