Changes between Version 10 and Version 11 of pyrunner


Ignore:
Timestamp:
12/04/23 11:56:11 (17 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyrunner

    v10 v11  
    2727=== Usage
    2828The PythonVenv usage is roughly like this:
    29 * create a PythonVenv  E, possibly already with the targz code you want to run
     29* create a PythonVenv  E, possibly already with the targz code you want to run. You can use the usual {{{python3 setup.py sdist}}}, or another mechanism such as the java2python compiler.
    3030 * Pass your targz directly into the PythonVenv constructor
    3131 * or if you dont have a targz, copy the code into E.
     
    3636=== Running python unit tests
    3737PythonVenv also has support to run unit tests with discovery.
    38 Your java code is assumed to have ...Test.java files that are compiled into your PythonVenv, eg using java2python like this
     38Your java code is assumed to have ...Test.java files that are compiled into your zip file, If you use java2python, you can keep the src and test java code separate and use something like
    3939{{{
    4040                PyProgram tests = PyProgram.fromDirectories(Arrays.asList(src, test));
    4141}}}
     42
    4243
    4344The src and test dir can have overlapping modules as usual in java (eg, you have {{{geniuswebsrc/issuevalue/Bid.java}}} and a matching {{{geniuswebtest/issuevalue/BidTest.java}}}. This results in the tests in the same directory in the compiled code, while being separate in the sources. Having it all in a single zip file allows for all dependencies, both for the code and for the testing, to be installed in one go.