blanket.js

Chutzpah coverage result smaller than 100% (due to private methods?)

时光怂恿深爱的人放手 提交于 2020-01-14 02:08:08
问题 I use Chutzpah to test my JavaScript test coverage. Here is an example for the coverage result when I run a single test file referenceFigureEdit.spec.js : I would expect the coverage to be 100% but it is only 91.07%. Clicking on the first line I can inspect my tested code in detail. Lines that are "not covered by the test" are highlighted: Question A : How can I tell Chutzpah that those methods have actually been executed or tell Chutzpah to not include those lines in the coverage result? Are

When using Ember-cli-blanket for coverage data includes files from Ember itself instead of only files I created

旧城冷巷雨未停 提交于 2020-01-06 23:51:51
问题 I added ember-cli-blanket into my project and managed to get it working fine. localhost:4200/tests?coverage would show the coverage data. However it included files such as 'project/components/modal-dialog' or 'project/components/modal-dialog-overlay' in the results, which are not files in the project, but are included by Ember since the project uses a modal dialog in one of the template files. These extra test files don't give me anything new since I'm not testing the ember codebase and

BlanketJS + Jasmine 2.0 not working

邮差的信 提交于 2019-12-21 04:06:35
问题 I have been testing with Jasmine 2.0.0 and it works without any problem. But there's a problem when I append BlanketJS to my code. I used a specRunner(https://github.com/alex-seville/blanket/blob/master/test/jasmine-requirejs/runner.html) that works with Jasmine 1.3.1. But It does not work when I replace Jasmine 1.3.1 with Jasmine 2.0.0, Here's original code from BlanketJS repo: <html> <head> <title>Jasmine Spec Runner</title> <link rel="stylesheet" type="text/css" href="../vendor/jasmine.css

Blanket.js vs Istanbul-js vs JSCover

和自甴很熟 提交于 2019-12-20 16:19:04
问题 I am trying to decide on a JS test code coverage tool but cannot see clearly the differences between them. The top hits in Google are blanket.js, istanbul-js and JSCover. Can anyone offer any information on the key differences between them and advantages/disadvantages? Are there any other useful ones out there? 回答1: After some trying around i clearly find istanbul the most convenient tool to bring coverage analysis to a node-js project. its installed with npm install it sets up its behavior

Blanket.js vs Istanbul-js vs JSCover

﹥>﹥吖頭↗ 提交于 2019-12-20 16:16:26
问题 I am trying to decide on a JS test code coverage tool but cannot see clearly the differences between them. The top hits in Google are blanket.js, istanbul-js and JSCover. Can anyone offer any information on the key differences between them and advantages/disadvantages? Are there any other useful ones out there? 回答1: After some trying around i clearly find istanbul the most convenient tool to bring coverage analysis to a node-js project. its installed with npm install it sets up its behavior

blanket.js not working with qunit in Ember-cli

二次信任 提交于 2019-12-14 02:45:05
问题 I would like to run blanket.js with qunit in my Ember-Cli app - I would like to avoid adding in grunt for only this purpose Tried to use npm install --save-dev blanket ( putting it in the node_modules dir ) and then putting the following in my index.html ( from my test dir ) <script> window.CioMobileENV = {{ENV}}; window.EmberENV = window.CioMobileENV.EmberENV; debugger; </script> <script src="assets/qunit.js"></script> <script src="assets/qunit-notifications.js"></script> <script src=

Ember-cli: importing blanket.js causes test runners to hang

社会主义新天地 提交于 2019-12-07 12:30:04
问题 I'm currently using ember-cli with ember-qUnit for testing. I would also like to add code coverage results to the test output, so after some research blanketjs seemed the way to go. I installed blanket using: npm install blanket And moved the blanket folder into the ember-cli vendor folder. As I understand the way to import libraries is through the Brocfile.js which I am doing like so: app.import('vendor/blanket/dist/qunit/blanket.js'); Using ember inspector it appears that blanket has been

Chutzpah coverage result smaller than 100% (due to private methods?)

限于喜欢 提交于 2019-12-06 07:54:19
I use Chutzpah to test my JavaScript test coverage. Here is an example for the coverage result when I run a single test file referenceFigureEdit.spec.js : I would expect the coverage to be 100% but it is only 91.07%. Clicking on the first line I can inspect my tested code in detail. Lines that are "not covered by the test" are highlighted: Question A : How can I tell Chutzpah that those methods have actually been executed or tell Chutzpah to not include those lines in the coverage result? Are there some restrictions on where/when code has to be executed to be part of the successful coverage? I

Ember-cli: importing blanket.js causes test runners to hang

左心房为你撑大大i 提交于 2019-12-06 03:07:47
I'm currently using ember-cli with ember-qUnit for testing. I would also like to add code coverage results to the test output, so after some research blanketjs seemed the way to go. I installed blanket using: npm install blanket And moved the blanket folder into the ember-cli vendor folder. As I understand the way to import libraries is through the Brocfile.js which I am doing like so: app.import('vendor/blanket/dist/qunit/blanket.js'); Using ember inspector it appears that blanket has been imported correctly, and the "enable coverage" checkbox has appeared at the top of the qUnit test results

Ember CLI and code coverage

家住魔仙堡 提交于 2019-12-03 16:08:52
问题 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 any success. I've managed to get each to actually produce a coverage report but the report either says 0% (istanbul) or 100% (blanket.js), and there's no way the current tests provide 100% coverage. The built project JavaScript file that Ember CLI produces contains all of the project's source files with each file's contents being