<Comment on #19345 Basic Python and Java testing a...
# github-notifications
c
Comment on #19345 Basic Python and Java testing and running issues Discussion answered by SweetTalkingBaby For completeness, the immediate solutions were: 1. The Python test functions need to begin with
test_
in order for Pytest to recognise them. 2. Changed the
entry_point
of
pex_binary
in the Python app BUILD file to refer to the function. 3. Added an explicit dependency
:lineprinter
to the
deploy_jar
in the Java app BUILD file. But I've made a few other changes, which required adding an explicit dependency
:line_printer
to
pex_binary
too. (commit b79f589). Now you can run the apps (which now take arguments) with
pants run src/python/app/line_printer:lp -- 2 3 4
and
pants run src/java/app/lineprinter:lp -- 2 3 4
. pantsbuild/pants