【问题标题】:Ember acceptance tests for build artifacts构建工件的 Ember 验收测试
【发布时间】:2016-03-05 18:39:32
【问题描述】:

在 Ember 中是否有标准的验收测试构建工件的方法?一个特定的用例是运行 addAddonToProjectaddBowerPackageToProject 的插件,然后断言 bower.jsonpackage.json 是否符合您的预期。

【问题讨论】:

    标签: ember.js acceptance-testing ember-testing


    【解决方案1】:

    https://github.com/tomdale/ember-cli-addon-tests 似乎是测试插件工件的最佳方式。

    更具体地说,https://github.com/tildeio/ember-cli-fastboot/blob/master/tests/acceptance/package-json-test.js#L35-L41 看到读取 package.json 并断言。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-21
      • 2023-04-03
      • 1970-01-01
      • 2016-06-22
      • 1970-01-01
      • 2015-10-25
      • 1970-01-01
      • 2011-12-18
      相关资源
      最近更新 更多