ANN: Nose Plugin to run JavaScript tests

2 messages in this thread from Chicago Python Uers Group in 2009-02

  1.   Kumar McMillan <kumar.mcmillan@gm...com> 02-16 05:26
  2.   missing
  3.   missing
  4.   missing
  5.   Kumar McMillan <kumar.mcmillan@gm...com> 02-18 00:11 [nose-users]ANN: Nose Plugin to run JavaScript tests

Kumar McMillan <kumar.mcmillan@gm...com>

2009-02-16 05:26:08
I've been messing around with a Nose plugin that discovers JavaScript
test files (just like .py files but ending in .js).  It collects them
and runs them all at the end in a java subprocess using Rhino.  Not
the most elegant solution but so far it seems like a nice way to
maintain a test suite of both Python and JavaScript code.

easy_install NoseJS

Documentation: http://pypi.python.org/pypi/NoseJS

It's still experimental so if anyone has a suite of JavaScript tests
please let me know if it works or not.  There is some support for
JavaScript libraries that are tied to the DOM of a browser.

-Kumar

PS. Even though the root of the word "Rhinocerous" means nose in
ancient Greek I still couldn't think of a clever name that wasn't,
well, too clever.
_______________________________________________
Chicago mailing list
Chicago@py...org
http://mail.python.org/mailman/listinfo/chicago

This message appeared in a previous month, was never archived, or was lost.

This message appeared in a previous month, was never archived, or was lost.

This message appeared in a previous month, was never archived, or was lost.

Kumar McMillan <kumar.mcmillan@gm...com>

2009-02-18 00:11:05
On Tue, Feb 17, 2009 at 3:42 PM, John J Lee <jjl@po...com> wrote:
>> Hmm, actually, I think it was just my misunderstanding of the original
>> docs when it said you can't call a method *in Python* that was defined
>> in JavaScript.  But calling a method in JS defined in JS probably
>> always worked.
>
> What docs say that?  Both should be possible.  I don't work on it, I'm
> just curious.
It was a doctest example on the page Atul posted:
http://code.google.com/p/python-spidermonkey/
under Limitations, this line:

>>> cx.eval_script("function foo(x) { return x + 1; }; foo;")
{'prototype': {}}

showing how the return value is not a python function, like you might expect.

>> version but had no luck.  There were no instructions and I had a lot
>> of trouble getting the XUL dy-libs to bind correctly.  I forget
>> exactly how I first got it to build in Atul's fork.
>
> Better off asking Paul, I guess.  You didn't mention which OS platform
> you're on, BTW.
yeah, I'll try to bug him about it.  It looks like he has disabled
issue tracking on github but I posted my progress on the wiki:
http://wiki.github.com/davisp/python-spidermonkey/building-on-mac-os-x


> John
>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "nose-users" group.
> To post to this group, send email to nose-users@go...com
> To unsubscribe from this group, send email to nose-users+unsubscribe@go...com
> For more options, visit this group at http://groups.google.com/group/nose-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
_______________________________________________
Chicago mailing list
Chicago@py...org
http://mail.python.org/mailman/listinfo/chicago

2 messages in this thread from Chicago Python Uers Group in 2009-02