function-templates icon indicating copy to clipboard operation
function-templates copied to clipboard

Improve test harness

Open dkundel opened this issue 5 years ago • 2 comments

As mentioned in #18 we should be improving the test harness. I think we should be leveraging parts of the twilio-run tool for this since it is already putting effort in simulating the Twilio Runtime and therefore provides the right globals etc.

That way we only need to maintain one implementation to stay in sync with the actual Runtime.

dkundel avatar Jul 19 '19 06:07 dkundel

Yeah, this is a good idea. What do you think to extracting the Runtime part of twilio-run to a twilio-runtime-mock module that the modules could share? (This small modules thing gets addictive doesn't it?) I guess it would be easier to have this repo depend on twilio-run and just pull the necessary bits out.

philnash avatar Jul 23 '19 06:07 philnash

Yeah I would say for now let's pull in twilio-run especially because it would also mean that you could easily manually test them by running twilio-run [path] but yeah I was thinking of pulling it out. We should create an issue for it for post SIGNAL.

dkundel avatar Jul 23 '19 20:07 dkundel