久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <tfoot id='AIOtI'></tfoot>

      <small id='AIOtI'></small><noframes id='AIOtI'>

      <i id='AIOtI'><tr id='AIOtI'><dt id='AIOtI'><q id='AIOtI'><span id='AIOtI'><b id='AIOtI'><form id='AIOtI'><ins id='AIOtI'></ins><ul id='AIOtI'></ul><sub id='AIOtI'></sub></form><legend id='AIOtI'></legend><bdo id='AIOtI'><pre id='AIOtI'><center id='AIOtI'></center></pre></bdo></b><th id='AIOtI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='AIOtI'><tfoot id='AIOtI'></tfoot><dl id='AIOtI'><fieldset id='AIOtI'></fieldset></dl></div>

      <legend id='AIOtI'><style id='AIOtI'><dir id='AIOtI'><q id='AIOtI'></q></dir></style></legend>
        <bdo id='AIOtI'></bdo><ul id='AIOtI'></ul>

      完整的 Gulp 伊斯坦布爾報道

      Full Gulp Istanbul Coverage Report(完整的 Gulp 伊斯坦布爾報道)
    2. <tfoot id='EC5OB'></tfoot>

      <small id='EC5OB'></small><noframes id='EC5OB'>

              <tbody id='EC5OB'></tbody>
            <legend id='EC5OB'><style id='EC5OB'><dir id='EC5OB'><q id='EC5OB'></q></dir></style></legend>
              <i id='EC5OB'><tr id='EC5OB'><dt id='EC5OB'><q id='EC5OB'><span id='EC5OB'><b id='EC5OB'><form id='EC5OB'><ins id='EC5OB'></ins><ul id='EC5OB'></ul><sub id='EC5OB'></sub></form><legend id='EC5OB'></legend><bdo id='EC5OB'><pre id='EC5OB'><center id='EC5OB'></center></pre></bdo></b><th id='EC5OB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EC5OB'><tfoot id='EC5OB'></tfoot><dl id='EC5OB'><fieldset id='EC5OB'></fieldset></dl></div>
                <bdo id='EC5OB'></bdo><ul id='EC5OB'></ul>

              • 本文介紹了完整的 Gulp 伊斯坦布爾報道的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在使用 gulp-istanbul 通過 Gulp 生成 JavaScript 單元測試覆蓋率報告.有沒有辦法配置 Istanbul 以生成我的 gulp 流中所有 JS 文件的完整覆蓋率報告,而不僅僅是測試用例涉及的文件.

                I am using gulp-istanbul to generate JavaScript unit test coverage reports through Gulp. Is there a way to configure Istanbul to generate a full coverage report of all the JS files in my gulp stream, and not just the files touched by a test case.

                我正在做一個有很多 JS,但沒有單元測試的項目,我們正在努力增加測試覆蓋率.我想要一份覆蓋率報告,首先顯示我們大多數文件的 0% 覆蓋率,但隨著時間的推移,覆蓋率會越來越高.

                I'm working on a project with a lot of JS, but no unit tests, and we are trying to increase the test coverage. I would like to have a coverage report that starts by show 0% coverage for most of our files, but over time will present an increasing coverage percentage.

                gulp.task( 'test', function () {
                    gulp.src( [ my source glob ] )
                        .pipe( istanbul() )
                        .on( 'end', function () {
                            gulp.src( [ my test spec glob ] )
                                .pipe( mocha( {
                                    reporter: 'spec'
                                } ) )
                                .pipe( istanbul.writeReports(
                                    [ output location ]
                                ) );
                        } );
                } );
                

                推薦答案

                現在其實簡單多了,你只需要添加 includeUntested 到你的 istanbul()打電話.

                It actually is much more simple now and you just have to add includeUntested to your istanbul() call.

                gulp.task('test', function () {
                    return gulp.src('./assets/**/js/*.js')
                      // Right there
                      .pipe(istanbul({includeUntested: true}))
                      .on('finish', function () {
                        gulp.src('./assets/js/test/test.js')
                          .pipe(mocha({reporter: 'spec'}))
                          .pipe(istanbul.writeReports({
                            dir: './assets/unit-test-coverage',
                            reporters: [ 'lcov' ],
                            reportOpts: { dir: './assets/unit-test-coverage'}
                          }));
                      });
                  });
                

                來源:https://github.com/SBoudrias/gulp-istanbul#includeuntested

                這篇關于完整的 Gulp 伊斯坦布爾報道的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)
                <legend id='As7ym'><style id='As7ym'><dir id='As7ym'><q id='As7ym'></q></dir></style></legend>
                <i id='As7ym'><tr id='As7ym'><dt id='As7ym'><q id='As7ym'><span id='As7ym'><b id='As7ym'><form id='As7ym'><ins id='As7ym'></ins><ul id='As7ym'></ul><sub id='As7ym'></sub></form><legend id='As7ym'></legend><bdo id='As7ym'><pre id='As7ym'><center id='As7ym'></center></pre></bdo></b><th id='As7ym'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='As7ym'><tfoot id='As7ym'></tfoot><dl id='As7ym'><fieldset id='As7ym'></fieldset></dl></div>

                  <tfoot id='As7ym'></tfoot>
                  1. <small id='As7ym'></small><noframes id='As7ym'>

                      <tbody id='As7ym'></tbody>

                          <bdo id='As7ym'></bdo><ul id='As7ym'></ul>
                        • 主站蜘蛛池模板: 在线免费观看黄a | 97久久久久久久久 | 久草免费在线 | 亚洲国产精品第一区二区 | 国产女人第一次做爰毛片 | a视频在线观看 | 国产成人在线视频播放 | 欧美日韩一区在线 | 久久久久久国产精品免费免费男同 | 日韩欧美亚洲 | 精品欧美色视频网站在线观看 | 久久久999免费视频 999久久久久久久久6666 | 97综合在线 | 看毛片网站 | 日韩成人av在线 | 国产精品久久久久久52avav | 福利在线观看 | 在线观看第一页 | 91久久久精品国产一区二区蜜臀 | 午夜伦理影院 | 浴室洗澡偷拍一区二区 | 久久久久亚洲 | 久久区二区 | 国产激情一区二区三区 | 啪啪综合网| 天天干天天操天天爽 | 一区中文 | 亚洲高清在线播放 | 国产三级 | 色婷婷综合在线观看 | 亚洲一区二区在线 | 日韩有码一区 | 国产精品久久久久久福利一牛影视 | 免费1区2区3区 | 91国产视频在线 | 亚洲视频精品在线 | 在线免费观看视频黄 | 91一区二区| 亚洲欧美一区二区三区在线 | 国产高清精品在线 | 在线观看www视频 |