Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有数百个 Polymer 测试套件。在每次测试结束时,我想做一些自定义质量检查。有没有办法为我的所有测试套件全局执行此操作?
在浏览了一些源代码后,我找到了解决方案。有一个extraScripts配置选项可以传递给 Web 组件测试器。afterEach在单独的 JS 文件中指定您的全局并将其包含在此处。
extraScripts
afterEach
// Additional .js files to include in *generated* test indexes.