我正在开发 google-sheets 插件。
我想创建函数来创建与各个电子表格关联的触发器。 我认为GAS SpreadSheetTriggerBuilder实现了这个功能,但是效果不太好。
当我将其作为插件进行测试时,使用 SpreadSheetTriggerBuilder 设置的触发器不起作用。 当它是 GAS 项目时,它们运行良好。
谁知道我的问题?
最佳答案
如 official documentation 中所写,
Installable triggers aren't supported when testing. Functionality that depends on installable triggers are not testable.
因此您无法测试这些触发器。
关于google-apps-script - 当我将我的 GAS 项目作为附加组件进行测试时,触发器无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64096763/