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.
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.