That seems more like integration testing to me rather than unit testing.

I should point out that the way I do pyjamas development is that most
of my code is actually factored out into components such as custom
widgets or framework pieces. Those I test individually via unit tests,
some of them are pure python and don't even require pyjd/pyjs. The
rest I'm testing using the example/uitest as a base.

Entering values into a form and checking if they make it to the
database is not unit testing, that's integration testing. Something I
haven't done yet but would like to add. There are some really nice
frameworks out there based on Selenium such as http://www.gebish.org
that would work really well for integration testing. I wish there was
a Python one but for now Geb seems to do everything I would want even
though it's Groovy based.

 - lex

On Thu, Dec 1, 2011 at 11:57 AM, Carl Roach <[email protected]> wrote:
> While looking at JavaScript-based solutions to write a website that works
> well on mobile devices I came across javascriptmvc.com. JavaScriptMVC has a
> unit testing and fixtures built-in to its framework and can use Selenium.
> Posted only fyi.
>
>
> On 1 December 2011 16:48, Lex Berezhny <[email protected]> wrote:
>>
>> On Thu, Dec 1, 2011 at 11:04 AM, Lukasz Mach <[email protected]>
>> wrote:
>> > Because ... it's hard to do it.
>>
>> That's a really bad excuse not to do something. Also the most common
>> excuse with not unit testing in general :-)
>>
>> Once you figure out a good workflow for yourself and start doing it,
>> then it becomes a really nice experience and you can't imagine writing
>> any significant amount of code without TDD. At least that's been my
>> experience. Getting started can be hard but it's worth it.
>
>

Reply via email to