Jeppe,

Once I check in some code (in about 20 minutes), if you run Lift in Test
mode (-Drun.mode=test), forms, etc. will have stable names which makes
testing easier.

Thanks,

David

On Thu, Jul 2, 2009 at 1:13 PM, Jeppe Nejsum Madsen <[email protected]>wrote:

>
> Hi,
>
> Having taken the first baby steps and gotten a Lift app running, it's
> time to bring back some of the old engineering practices to make sure
> things keep running when new features are added at a rapid pace :-)
>
> I'm interested in how people are testing their Lift apps, both at the
> unit test level (ie. specs/scalatest with no container) and at the
> integration test level (running in servlet container). Also, how are you
> doing TDD with Lift (if at all).
>
> Specifically, I've run into the following issues:
>
> 1) Testing model classes. Many require access to S (ie to read
> resources) or other static Lift constructs. How can you mock these?
>
> 2) Testing snippets. Same issue with S, but more related to the actual
> request, eg. S.param
>
> For in-container testing it seems the practice of generating unique
> names for form fields, makes it difficult to use tools like Selenium to
> do browser based testing? How do you handle this?
>
> Any input is appreciated
>
> /Jeppe
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to