This folder contains unit tests for Local Agent.
You'll have to install the extra packages to run the tests:
$ source <venv-name>/bin/activate $ cd /path/to/{repo-base}/local-agent $ pip install .[test]
Run all the unit tests and show the coverage report.
cd /path/to/{repo-base}/local-agent/local_agent/tests/unit_tests/ coverage run --source={LOCAL_AGENT_PACKAGE_PATH}/local_agent/ -m unittest discover && coverage reportwhere {LOCAL_AGENT_PACKAGE_PATH} can be obtained by the following command:
$ pip show local-agent | grep -e "^Location" | awk -F " " '{print $2}'