tree: 4c74d6510b2cac9ed7237bc251ff8251f6460fb8 [path history] [tgz]
  1. algorithms/
  2. examples/
  3. federated/
  4. lineage/
  5. manual_tests/
  6. matrix/
  7. onnx_systemds/
  8. __init__.py
  9. README.md
  10. test_dml_script.py
src/main/python/tests/README.md

Python Test

Tests are easily executed using unittest:

But before executing the tests it is recommended to go through systemds Setting SYSTEMDS_ROOT environment

python -m unittest discover -s tests -p 'test_*.py'

This command searches through the test directory and finds all python files starting with test_ and executes them.

The only tests not executed using the above commands are Federated Tests.

Federated Tests

To execute the Federated Tests, use:

./tests/federated/runFedTest.sh

Federated experiments are a little different from the rest, since they require some setup in form of federated workers.

See more details in the script