tree: b2edc65986c3c2c110fdea316645a81c5312d1c6 [path history] [tgz]
  1. algorithms/
  2. basics/
  3. docs_test/
  4. examples/
  5. federated/
  6. frame/
  7. iotests/
  8. lineage/
  9. list/
  10. manual_tests/
  11. matrix/
  12. script/
  13. source/
  14. __init__.py
  15. README.md
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

# Single thread:
python -m unittest discover -s tests -p 'test_*.py'

# Parallel
unittest-parallel -t . -s tests --module-fixtures

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