Tag: 伊斯坦布尔

你如何使用伊斯坦布尔的代码覆盖与编译脚本?

我一整个早上都在阅读文章,试图正确地设置我的环境。 但由于某种原因,我没有得到它。 我的设置 – /app … source (mixed js and ts) /scripts … copied source (js) typescripts.js // transpiled typescript with inline mapping testing运行正常,并且在chromedebugging器中的映射debugging被正确映射。 但伊斯坦布尔把typescripts.js文件视为一个文件,而不是几十个其他文件的连接。 为了生成打字稿源,我使用了gulp-typescript 。 源代码(不包括testing代码)被传输到前面提到的typescripts.js文件中,testing代码被单独转换并复制到/scripts 。 var ts = require('gulp-typescript'); var sourcemaps = require('gulp-sourcemaps'); var concat = require('gulp-concat'); module.exports = function (gulp, config) { 'use strict'; // Runs dot ts files found […]

运行摩卡+伊斯坦布尔+巴别

摩卡和巴贝尔编译器运行伊斯坦布尔时,我有一些问题.. 我所有的testing都运行得很好,但是在完成所有的testing之后,它向我显示了这个信息: No coverage information was collected, exit without writing coverage information 并没有产生任何报道报道.. 我正在运行的命令是: NODE_ENV=test istanbul cover _mocha — –require babel-core/register –recursive 该项目是在github托pipe: https : //github.com/weslleyaraujo/react-flux-puzzle/tree/feat/unit-tests-24 任何想法可能是什么?