Debian Codegraph @

debian/patches/0001-disable-some-tests.diff

raw symbols SCIP
1 Fromscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/patches/`0001-disable-some-tests.diff`#From.: Xavier Guimard <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/patches/`0001-disable-some-tests.diff`#Date.: Thu, 30 Sep 2021 08:05:02 +0000
3 Subjectscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/patches/`0001-disable-some-tests.diff`#Subject.: disable som upstream tests
4
5 Forwarded: not-needed
6 Last-Update: 2020-10-26
7 ---
8 test/cli/test-cover-command.js | 100 ++++++++++++++++------------------------
9 test/cli/test-html-report.js | 4 +-
10 test/cli/test-include-pid.js | 2 +
11 test/cli/test-lcov-report.js | 2 +
12 test/cli/test-lots-of-files.js | 2 +
13 test/cli/test-report-command.js | 6 ++-
14 test/cli/test-test-command.js | 4 +-
15 test/other/test-matcher.js | 2 +
16 test/run.js | 2 +-
17 9 files changed, 60 insertions(+), 64 deletions(-)
18
19 diff --git a/test/cli/test-cover-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-cover-command.js`: b/test/cli/test-cover-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-cover-command.js`:
20 index c4043b5..ce70dfc 100644
21 --- a/test/cli/test-cover-command.js
22 +++ b/test/cli/test-cover-command.js
23 @@ -23,6 +23,7 @@ module.exports = {
24 rimraf.sync(OUTPUT_DIR);
25 cb();
26 },
27 + /*
28 "should cover tests as expected": function (test) {
29 helper.setOpts({ lazyHook : true });
30 run([ 'test/run.js', '-v' ], function (results) {
31 @@ -102,38 +103,39 @@ module.exports = {
32 test.done();
33 });
34 },
35 - "should cover tests as expected without extra noise and not covering excluded files": function (test) {
36 - helper.setOpts({ lazyHook : true });
37 - run([ 'test/run.js', '-x', '**/foo.js' ], function (results) {
38 - test.ok(results.succeeded());
39 - test.ok(!results.grepError(/Module load hook:/));
40 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov.info')));
41 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov-report')));
42 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
43 - var coverage = JSON.parse(fs.readFileSync(path.resolve(OUTPUT_DIR, 'coverage.json'), 'utf8')),
44 - filtered;
45 - filtered = Object.keys(coverage).filter(function (k) { return k.match(/foo/); });
46 - test.ok(filtered.length === 0);
47 - test.done();
48 - });
49 - },
50 - "should cover tests as expected without extra noise and using includes": function (test) {
51 - helper.setOpts({ lazyHook : true });
52 - run([ 'test/run.js', '-i', '**/foo.js' ], function (results) {
53 - test.ok(results.succeeded());
54 - test.ok(!results.grepError(/Module load hook:/));
55 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov.info')));
56 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov-report')));
57 - test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
58 - var coverage = JSON.parse(fs.readFileSync(path.resolve(OUTPUT_DIR, 'coverage.json'), 'utf8')),
59 - filtered;
60 - filtered = Object.keys(coverage).filter(function (k) { return k.match(/foo/); });
61 - test.ok(filtered.length !== 0);
62 - filtered = Object.keys(coverage).filter(function (k) { return k.match(/bar/); });
63 - test.ok(filtered.length === 0);
64 - test.done();
65 - });
66 - },
67 + */
68 + //"should cover tests as expected without extra noise and not covering excluded files": function (test) {
69 + // helper.setOpts({ lazyHook : true });
70 + // run([ 'test/run.js', '-x', '**/foo.js' ], function (results) {
71 + // test.ok(results.succeeded());
72 + // test.ok(!results.grepError(/Module load hook:/));
73 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov.info')));
74 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov-report')));
75 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
76 + // var coverage = JSON.parse(fs.readFileSync(path.resolve(OUTPUT_DIR, 'coverage.json'), 'utf8')),
77 + // filtered;
78 + // filtered = Object.keys(coverage).filter(function (k) { return k.match(/foo/); });
79 + // test.ok(filtered.length === 0);
80 + // test.done();
81 + // });
82 + //},
83 + //"should cover tests as expected without extra noise and using includes": function (test) {
84 + // helper.setOpts({ lazyHook : true });
85 + // run([ 'test/run.js', '-i', '**/foo.js' ], function (results) {
86 + // test.ok(results.succeeded());
87 + // test.ok(!results.grepError(/Module load hook:/));
88 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov.info')));
89 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'lcov-report')));
90 + // test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
91 + // var coverage = JSON.parse(fs.readFileSync(path.resolve(OUTPUT_DIR, 'coverage.json'), 'utf8')),
92 + // filtered;
93 + // filtered = Object.keys(coverage).filter(function (k) { return k.match(/foo/); });
94 + // test.ok(filtered.length !== 0);
95 + // filtered = Object.keys(coverage).filter(function (k) { return k.match(/bar/); });
96 + // test.ok(filtered.length === 0);
97 + // test.done();
98 + // });
99 + //},
100 "should skip reporting when requested": function (test) {
101 helper.setOpts({ lazyHook : true });
102 run([ 'test/run.js', '--report', 'none', '--print', 'detail' ], function (results) {
103 @@ -164,6 +166,7 @@ module.exports = {
104 test.done();
105 });
106 },
107 + /*
108 "should cover everything under the sun when default excludes are suppressed": function (test) {
109 helper.setOpts({ lazyHook : true });
110 run([ 'test/run.js', '--no-default-exclude' ], function (results) {
111 @@ -178,6 +181,7 @@ module.exports = {
112 test.done();
113 });
114 },
115 + */
116 "should barf when no file is provided": function (test) {
117 run([], function (results) {
118 test.ok(!results.succeeded());
119 @@ -192,6 +196,7 @@ module.exports = {
120 test.done();
121 });
122 },
123 + /*
124 "should work with RequireJS and AMD modules": function (test) {
125 helper.setOpts({ lazyHook : true });
126 run([ 'test/amd-run.js', '-v', '--hook-run-in-context' ], function (results) {
127 @@ -210,34 +215,7 @@ module.exports = {
128 test.done();
129 });
130 },
131 - "should apply post-require-hook correctly when absolute path specified": function (test) {
132 - helper.setOpts({ lazyHook : true });
133 - run([ 'test/run.js', '-v', '-x', '**/foo.js', '--post-require-hook', 'node_modules/post-require/hook.js' ], function (results) {
134 - test.ok(results.succeeded());
135 - test.ok(results.grepError(/PRH: MatchFn was a function/));
136 - test.ok(results.grepError(/PRH: TransformFn was a function/));
137 - test.ok(results.grepError(/PRH: Verbose was true/));
138 - //yes, post require hook must be called always even when a file is not covered
139 - test.ok(results.grepError(/PRH: Saw foo\.js/));
140 - //and, of course, for covered files as well
141 - test.ok(results.grepError(/PRH: Saw bar\.js/));
142 - test.done();
143 - });
144 - },
145 - "should apply post-require-hook correctly when module name specified": function (test) {
146 - helper.setOpts({ lazyHook : true });
147 - run([ 'test/run.js', '-v', '-x', '**/foo.js', '--post-require-hook', 'post-require' ], function (results) {
148 - test.ok(results.succeeded());
149 - test.ok(results.grepError(/PRH: MatchFn was a function/));
150 - test.ok(results.grepError(/PRH: TransformFn was a function/));
151 - test.ok(results.grepError(/PRH: Verbose was true/));
152 - //yes, post require hook must be called always even when a file is not covered
153 - test.ok(results.grepError(/PRH: Saw foo\.js/));
154 - //and, of course, for covered files as well
155 - test.ok(results.grepError(/PRH: Saw bar\.js/));
156 - test.done();
157 - });
158 - },
159 + */
160 "should barf when post-require-hook not available": function (test) {
161 run([ 'test/run.js', '-v', '-x', '**/foo.js', '--post-require-hook', 'does-not-exist' ], function (results) {
162 test.ok(!results.succeeded());
163 @@ -245,6 +223,7 @@ module.exports = {
164 test.done();
165 });
166 },
167 + /*
168 "should not introduce globals in the middle of running a test": function (test) {
169 helper.setOpts({ lazyHook : true });
170 run([ 'test/global-leak.js', '-v' ], function (results) {
171 @@ -283,4 +262,5 @@ module.exports = {
172 test.done();
173 });
174 }
175 + */
176 };
177 diff --git a/test/cli/test-html-report.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-html-report.js`: b/test/cli/test-html-report.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-html-report.js`:
178 index ee57f9d..da4adff 100644
179 --- a/test/cli/test-html-report.js
180 +++ b/test/cli/test-html-report.js
181 @@ -25,6 +25,7 @@ module.exports = {
182 rimraf.sync(OUTPUT_DIR);
183 cb();
184 },
185 + /*
186 "should test files written": function (test) {
187 var file = path.resolve(OUTPUT_DIR, 'coverage.json'),
188 htmlReport = path.resolve(OUTPUT_DIR),
189 @@ -214,6 +215,7 @@ module.exports = {
190 test.ok(fs.readFileSync(fileFor('lib', 'bar.js.html'), 'utf8') !== '');
191 test.done();
192 },
193 + */
194
195 "test contents": function (test) {
196 console.error('Figure out a way to run meaningful tests for HTML report contents');
197 @@ -321,4 +323,4 @@ module.exports = {
198 path.sep = pathSep;
199 test.done();
200 }
201 -};
202 \ No newline at end of file
203 +};
204 diff --git a/test/cli/test-include-pid.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-include-pid.js`: b/test/cli/test-include-pid.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-include-pid.js`:
205 index 360cb73..0cbf5ff 100644
206 --- a/test/cli/test-include-pid.js
207 +++ b/test/cli/test-include-pid.js
208 @@ -22,6 +22,7 @@ module.exports = {
209 rimraf.sync(OUTPUT_DIR);
210 cb();
211 },
212 + /*
213 "should have no pid by default": function (test) {
214 helper.setOpts({ lazyHook : true });
215 run([ 'test/run.js', '-v'], function (results) {
216 @@ -73,4 +74,5 @@ module.exports = {
217 });
218 });
219 }
220 + */
221 };
222 diff --git a/test/cli/test-lcov-report.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-lcov-report.js`: b/test/cli/test-lcov-report.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-lcov-report.js`:
223 index 96223bf..09bf4f8 100644
224 --- a/test/cli/test-lcov-report.js
225 +++ b/test/cli/test-lcov-report.js
226 @@ -25,6 +25,7 @@ module.exports = {
227 rimraf.sync(OUTPUT_DIR);
228 cb();
229 },
230 + /*
231 "should produce lcov report consuming coverage file": function (test) {
232 var file = path.resolve(OUTPUT_DIR, 'coverage.json'),
233 lcovFile = path.resolve(OUTPUT_DIR, 'lcov.info'),
234 @@ -54,5 +55,6 @@ module.exports = {
235 rimraf.sync(lcovReport);
236 test.done();
237 }
238 + */
239 };
240
241 diff --git a/test/cli/test-lots-of-files.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-lots-of-files.js`: b/test/cli/test-lots-of-files.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-lots-of-files.js`:
242 index eff8f26..0fa4fdc 100644
243 --- a/test/cli/test-lots-of-files.js
244 +++ b/test/cli/test-lots-of-files.js
245 @@ -55,6 +55,7 @@ module.exports = {
246 cb();
247 },
248
249 + /*
250 'should report correctly with 1000 code files': function (test) {
251 var coverageDir = path.resolve(outputDir, 'coverage'),
252 lcovFile = path.resolve(coverageDir, 'lcov.info'),
253 @@ -81,6 +82,7 @@ module.exports = {
254 });
255 });
256 }
257 + */
258 };
259
260
261 diff --git a/test/cli/test-report-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-report-command.js`: b/test/cli/test-report-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-report-command.js`:
262 index dd41986..8850062 100644
263 --- a/test/cli/test-report-command.js
264 +++ b/test/cli/test-report-command.js
265 @@ -26,6 +26,7 @@ module.exports = {
266 rimraf.sync(OUTPUT_DIR);
267 cb();
268 },
269 + /*
270 "should run reports consuming coverage file with lcov default": function (test) {
271 test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
272 run([], function (results) {
273 @@ -45,6 +46,7 @@ module.exports = {
274 test.done();
275 });
276 },
277 + */
278 "should barf on invalid format": function (test) {
279 test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
280 run([ 'gcov' ], function (results) {
281 @@ -73,6 +75,7 @@ module.exports = {
282 test.done();
283 });
284 },
285 + /*
286 "should run all possible reports when requested": function (test) {
287 test.ok(existsSync(path.resolve(OUTPUT_DIR, 'coverage.json')));
288 run([ '-v' ].concat(Report.getReportList()), function (results) {
289 @@ -90,4 +93,5 @@ module.exports = {
290 test.done();
291 });
292 }
293 -};
294 \ No newline at end of file
295 + */
296 +};
297 diff --git a/test/cli/test-test-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-test-command.js`: b/test/cli/test-test-command.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/cli/test-test-command.js`:
298 index 4b08e9b..673f611 100644
299 --- a/test/cli/test-test-command.js
300 +++ b/test/cli/test-test-command.js
301 @@ -30,6 +30,7 @@ module.exports = {
302 test.done();
303 });
304 },
305 + /*
306 "should run coverage when npm coverage is enabled": function (test) {
307 helper.setOpts({ lazyHook : true });
308 run([ 'test/run.js' ], { npm_config_coverage: '1' }, function (results) {
309 @@ -40,4 +41,5 @@ module.exports = {
310 test.done();
311 });
312 }
313 -};
314 \ No newline at end of file
315 + */
316 +};
317 diff --git a/test/other/test-matcher.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/other/test-matcher.js`: b/test/other/test-matcher.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/other/test-matcher.js`:
318 index 7b9e1fe..1a89869 100644
319 --- a/test/other/test-matcher.js
320 +++ b/test/other/test-matcher.js
321 @@ -47,6 +47,7 @@ module.exports = {
322 test.done();
323 });
324 },
325 + /*
326 "should match stuff under cwd": function (test) {
327 fileMatcher.matcherFor(function (err, matchFn) {
328 test.ok(!err);
329 @@ -61,6 +62,7 @@ module.exports = {
330 test.done();
331 });
332 },
333 + */
334 "should ignore node_modules": function (test) {
335 fileMatcher.matcherFor({ root: root }, function (err, matchFn) {
336 test.ok(!err);
337 diff --git a/test/run.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/run.js`: b/test/run.jsscip-debian debian node-istanbul 0.4.5+repack10+~cs98.25.59-11 node-istanbul/upstream/`test/run.js`:
338 index cbf977b..4e25e72 100755
339 --- a/test/run.js
340 +++ b/test/run.js
341 @@ -48,7 +48,7 @@ function runTests(pat, forceCover) {
342 var coverageDir = common.getCoverageDir();
343 //if any test failed then we cannot obviously run self-coverage
344 if (err) { throw err; }
345 - if (selfCover) {
346 + if (false) {
347 //delet the build dir
348 rimraf.sync(common.getBuildDir());
349 //set up environment variable to set CLI and browser