On Thu, Dec 06, 2012 at 04:21:45PM -0800, Mike Orr wrote:
> I'm porting a Pylons 1 application to Pyramid and I want to write some
> automated tests. It has only a few screens but it has a large number of
> input variables that are shared between screens, and it makes numerous
> calls to a C library (using ctypes) that may return error messages, which
> are propagated to the user in a delayed manner similar to flash messages.
> 
> Currently I have a pair of rudimentrary Twill scripts to test the new site
> and compare it to the old site. But the Twill shell has a lot of
> limitaitons so I'm thinking of switching to Twill's Python API or unittest.
> So I'm wondering if anybody has any suggestions between these or ideas for
> how to design the tests in Pyramid.
> 
> I'm leaning more toward functional tests first because the Pylons code was
> already written by someone else, and the client is most interested in
> whether the site behaves the same as the old site and returns the same
> results, as opposed to what each individual function does. I should fill in
> those low-level tests later but I think I need some more "practical" tests
> first.
...
> So, anyone have any ideas?

I like zope.testbrowser for functional tests.  AFAIU it's Twill-like
(I've never used Twill), but you have the full power of Python instead
of a restricted domain language.

Marius Gedminas
-- 
The BeOS takes the best features from the major operating systems. It's got
the power and flexibility of Unix, the interface and ease of use of the MacOS,
and Minesweeper from Windows.
                -- Tyler Riti

Attachment: signature.asc
Description: Digital signature

Reply via email to