<#19345 Basic Python and Java testing and running ...
# github-notifications
c
#19345 Basic Python and Java testing and running issues New discussion created by SweetTalkingBaby Hello everybody! I'm brand new to Pants and have mostly managed to get it going thanks to the documentation, except for a couple of things. Please see this basic repo with Python and Java code. Three issues: 1. Upon
pants test ::
, the Java tests all pass, but Pytest fails to identify any of the Python tests. 2.
pants package src/python/app/line_printer:lp
creates the
lp.pex
binary, but
pants run src/python/app/line_printer:lp
yields
ImportError: Error while finding module specification for 'app.line_printer'
. 3.
pants package src/java/app/lineprinter:lp
creates the
lp.jar
file, but
pants run src/java/app/lineprinter:lp
yields
java.lang.ClassNotFoundException: app.lineprinter.Main
. Any advice would be greatly appreciated! pantsbuild/pants