Running Unit Tests

switchio’s unit test set relies on pytest and tox. Tests require a FreeSWITCH slave process which has been deployed with the required baseline config and can be accessed by hostname.

To run all tests invoke tox from the source dir and pass the FS hostname:

tox --

SIPp and pysipp are required to be installed locally in order to run call/load tests.

To run multi-slave tests at least two slave hostnames are required:

tox -- --fsslaves=fs.slave.hostname1,fs.slave.hostname2