[Buildbot-devel] Node.js-based testing

Pierre Tardy tardyp at gmail.com
Tue Jul 17 19:35:36 UTC 2012


Looks great!

I also like Ghost.py better than phantom.js. Looking at both source code,
it looks like the latter is much more complex. Ghost.py is one file on
python heavily depending on pyside or pyqt webkit binding.

I agree that it would be much better if all our test are triggered via
twisted.
In such case, maybe it can be worth to fork the code into buildbot and
adapt it to the trial testing model.

I'm particularly nervous about having to re-spawn a full webkit stack for
each test.
Would probably be useful to make some kind of singleton utility for the web
front end testing.

Also, as a last comment, this stuff would be more about integration testing
rather than unit testing. Not sure how much that matters. I dont know how
much benefit would we have to invest much in JS unit testing. I mean it
looks quite difficult to mock the DOM, as the principal output to much of
our JS will be DOM.

Pierre


On Mon, Jul 16, 2012 at 9:49 PM, John Carr <johnmdcarr at me.com> wrote:

> I'd prefer Ghost.py simply for having all our tests run from trial, and
> when we do want to involve a real master server those tests would be easier
> to orchestrate. Though I'm the guy that wants to write as little JS as
> possible so my opinion should hold less weight :P
>
> John (Jc2k)
>
> On 16 Jul 2012, at 19:57, Dustin J. Mitchell wrote:
>
> > And, Jc2k just pointed me to http://jeanphix.me/Ghost.py/, which is
> > similar, but in Python.  I think this would let us write tests in
> > Python, against a real master web server, and still do detailed
> > assertions about the JS results.
> >
> > The example looks a lot like Selenium, but I'd like to avoid getting
> > into selenium-style testing.  I'm really most interested in
> > unit-testing the functions defined in lib/*/*.js.
> >
> > Dustin
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20120717/21902f68/attachment.html>


More information about the devel mailing list