clulab / eidos

Machine reading system for World Modelers
Apache License 2.0
36 stars 24 forks source link

Test Python (without Scala) #1063

Closed kwalcock closed 3 years ago

kwalcock commented 3 years ago

This is an attempt to arrange for python unit testing for eidos. This testing is only performed on the top level project right now. Python files are expected to be in src/main/python and src/test/python. The testPython task runs the tests. All the files are first copied to target/python from which the tests are run with pytest. testPython is not integrated into the normal test procedure, which continues to test only Scala/Java code. Travis will test the python code and if you need to, just run sbt testPython. See python.sbt for details. To run the tests, pytest needs to be pre-installed on your computer.

kwalcock commented 3 years ago

I meant that Jenkins will test the Python code since that is being used for eidos. Travis may be doing the ontologies.