Re: Running test pack for releases / candidates

Jeff Allen <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <[email protected]>
You should expect some failures: see discussion in other posts on this 
list, and on the bug tracker, for what you should expect. I report 
fairly carefully what fails for me on Windows since I may be the only 
one to notice.

These tests are the CPython regression tests for the most part. There 
are some additional tests for Jython, and some Jython-specific versions 
of the CPython tests, just as the standard library itself has 
Jython-specific versions. We try to keep special versions to a minimum, 
but they keep springing up.

test___all__ tests the operation of the special attribute __all__, used 
to define what "from <m> import *" should actually import. This happens 
to be amongst the few handfuls of tests that Jython fails, albeit for a 
peripheral reason. (http://bugs.jython.org/issue2308)

As Jim points out, -m test.regrtest -e is the thing to run. (Also for 
CPython, but the -e flag is only supported in the Jython-specific 
variant.) If you were toying with the idea of contributing to Jython 
(hint), you'll be typing that a lot.

Jeff

On 30/04/2015 02:44, Jim Baker wrote:
> Run the tests like so:
>
> jython -m test.regrtest -e
>
> (-e means the expected tests for Jython, since we don't run all tests 
> from CPython. This option probably should be the default, as it is 
> with ant regrtest.)
>
> For the specific case of test_all, you will want to include on your 
> CLASSPATH a jar that (at least claims to) implement the servlet API. 
> You can use this one for that purpose: 
> https://github.com/jythontools/jython/blob/master/extlibs/servlet-api-2.5.jar
>
> Note that this doesn't apply to standalone since we don't bundle 
> tests. I suppose you can run them by setting JYTHONPATH to a Lib with 
> these tests, perhaps from a source checkout.
>
> - Jim
>
> On Wed, Apr 29, 2015 at 7:31 PM, Adam <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     Is there a standard way to run the test pack if you don't have the
>     jython source checked out? I tried running lib/test/test_all.py as
>     it seemed plausible but couldn't find explicit guidance in the
>     wiki or readme. Quite possible I missed something.
>
>     Cheers
>     Adam
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.