Ember CLI and code coverage

前端 未结 3 1333
耶瑟儿~
耶瑟儿~ 2021-02-07 11:53

Has anyone managed to get code coverage working with an Ember CLI project?

I\'ve tried using blanket.js and istanbul, as have others here, here and here, neither with an

相关标签:
3条回答
  • 2021-02-07 12:38

    AFAIK, ember-cli-code-coverage provides the most accurate and easy to configure solution for coverage in ember-cli applications.It creates readable coverage reports for each file in the app/ directory. It is based on istanbul.

    0 讨论(0)
  • 2021-02-07 12:53

    I tried this, made some progress but couldn't get it to work.

    This was the main resource:

    https://github.com/airportyh/testem/tree/master/examples/coverage_istanbul

    EDIT 1:

    Was inspired to give it another try, and made some honest to goodness progress. Will throw up a gist and post a link

    0 讨论(0)
  • 2021-02-07 12:57

    ember-cli-blanket was released last month, seems to do a decent job.

    0 讨论(0)
提交回复
热议问题