executes tests by managing the test server and collecting results
TestRunner
class is responsible for executing tests by managing the test server, making calls, and collecting results. it coordinates the entire testing process.
port
(int): the port to run the test server onngrok_url
(str): the ngrok url for external access to the test servertwilio_phone_number
(str): the phone number to use as the “from” number for outbound test callsevaluator
(BaseEvaluator | None, optional): the evaluator to use for assessing test results. defaults to none.INBOUND
: Constant for inbound call typeOUTBOUND
: Constant for outbound call typeadd_test()
run_tests()
phone_number
(str): the phone number to call or receive calls fromtype
(str, optional): the type of calls to make (INBOUND or OUTBOUND). defaults to OUTBOUND.