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.
作为我的 TeamCity 环境中的构建步骤,我需要为一组 web 组件运行我的所有单元测试(您可以假设 TeamCity 始终是最新的)。我不知道从哪里开始。任何建议将不胜感激。
在 TeamCity 的构建配置中,添加如下命令行构建步骤:
npm install npm run bower -- install npm test
您package.json可以scripts定义为:
package.json
scripts
"scripts": { "gulp": "gulp", "bower": "bower", "wct": "wct", "test": "gulp build && wct" },