SAP Spartacus的单元测试目录结构
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus的单元测试目录结构
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
啟動(dòng)單元測(cè)試的命令:
yarn test:core:lib // running all of the unit tests - they need to be green, so you can push the changes easily
projects下面的core和storefrontlib的src文件夾下都有test.ts:
package.json里定義的test:core:lib指令:
實(shí)際上是這幾個(gè)指令的總和:
"test:core:lib": "concurrently \"ng test core --code-coverage\" \"ng test storefrontlib --code-coverage\" \"ng test my-account --code-coverage\" \"ng test product --code-coverage\" \"ng test cdc --code-coverage\" \"ng test setup --code-coverage\"","test:storefront:lib": "ng test storefrontlib --sourceMap --code-coverage"要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的SAP Spartacus的单元测试目录结构的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 为什么不要向AI聊天机器人咨询健康问题?
- 下一篇: 演讲预告:一个月的住院经历,我悟到了哪些