Re: [TurboGears] Testing on Javascript logic?

22 views
Skip to first unread message

Alessandro Molina

unread,
Oct 22, 2012, 4:41:29 AM10/22/12
to turbo...@googlegroups.com
I have used selenium with a python driver for the cases where I needed
to have full stack tests.
Recently some people have successfully used PhantomJS for that too,
but I have never tried it so I cannot tell you if it would be better
or worse than Selenium.

On Sun, Oct 21, 2012 at 10:38 PM, Kyle Hornberger
<kyle.ho...@gmail.com> wrote:
> Hi,
>
> I've been working with Turbogears for a short while, but have a persisting
> problem and I'm hoping someone else might have some insight.
> Long story short, I don't know how to get comprehensive enough test coverage
> on a Turbogears app.
>
> A fairly large amount of my logic is contained in page javascript as opposed
> to in the controllers/forms/widgets/validators, but the controllers
> eventually dictate submissions to a webservice that actually performs the
> important database operations.
> So far, I've been doing some unit tests for python with nose, and unit tests
> for the javascript with qunit, but I'd like to have a way to do some
> integration tests between the two. Are there other frameworks out there that
> can both simulate the browser environment and connect to the Turbogears
> controller methods?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/p3PXm7qmq_gJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.

Michael Pedersen

unread,
Jan 1, 2013, 11:18:31 PM1/1/13
to tg-trunk
Doing test coverage for javascript is something I've been becoming interested in myself. This page seems to have a decent set of pointers to help get started: http://stackoverflow.com/questions/13813762/jenkins-test-coverage-report-for-javascript-tests

If you know of others, please post them. I'd like to hear them.
--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: m.ped...@icelus.org -- Twitter: pedersentg
Reply all
Reply to author
Forward
0 new messages