- Clone the repo to your local directory
- Change to the installation directory
mvn clean installThe JUnit tests conduct string comparisons of Python generated from Rune samples expected results.
All tests should pass.
Assuming the build and tests successfully complete and Python 3.11+ is installed.
test/python_unit_tests/run_python_unit_tests.shAll tests should pass
These tests implement the common standards found in the Rune Common Repo.
- Get the test Rune and JSON files
test/serialization/get_serialization_source.sh- Generate Python from Rune definitions
mvn clean install- Run the tests
test/serialization/run_serialization_tests.shAll tests are expected to pass.
Testing leverages serialization_test.py which can be used to test a directory of JSON or a specific file.
To use this script:
- From the [Project Root], setup the environment:
build/setup_python.sh
source .pyenv/bin/activate- Then execute the script to get help instructions:
python test/serialization_test/serialization.py -h- To clean up the environment, execute the following from the Python project root:
deactivate
build/cleanup_python_env.sh