Skip to content

Commit 60bc474

Browse files
author
Nitin Gurram
committed
Removed dup tests
1 parent 9e8b920 commit 60bc474

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Tests/L0/Common-CodeCoverageEnabler/_suite.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -266,37 +266,4 @@ describe('Code Coverage enable tool tests', function () {
266266
done(err);
267267
});
268268
});
269-
270-
/* Ant build tool - Code Coverage */
271-
it('Ant build file with Jacoco CC', (done) => {
272-
let buildFile = path.join(data, "ant_build.xml");
273-
buildProps['buildfile'] = buildFile;
274-
275-
let ccEnabler = new CodeCoverageEnablerFactory().getTool("ant", "jacoco");
276-
ccEnabler.enableCodeCoverage(buildProps).then(function (resp) {
277-
let content = fs.readFileSync(buildFile, "utf-8");
278-
assert.notEqual(content.indexOf(`excludes="com.xyz"`), -1, "Exclude filter must be present");
279-
assert.notEqual(content.indexOf(`includes="com.abc"`), -1, "Include filter must be present");
280-
assert.notEqual(content.indexOf(`jacoco:coverage destfile`), -1, "Jacoco Plugin must be present");
281-
done();
282-
}).catch(function (err) {
283-
done(err);
284-
});
285-
})
286-
287-
it('Ant build file with Cobertura CC', (done) => {
288-
let buildFile = path.join(data, "ant_build.xml");
289-
buildProps['buildfile'] = buildFile;
290-
291-
let ccEnabler = new CodeCoverageEnablerFactory().getTool("ant", "cobertura");
292-
ccEnabler.enableCodeCoverage(buildProps).then(function (resp) {
293-
let content = fs.readFileSync(buildFile, "utf-8");
294-
assert.notEqual(fs.existsSync(path.join(data, buildProps['reportbuildfile'])), true, "Report file must be present");
295-
assert.notEqual(content.indexOf(`cobertura-classpath`), -1, "Jacoco Plugin must be present");
296-
done();
297-
}).catch(function (err) {
298-
done(err);
299-
});
300-
})
301-
302269
});

0 commit comments

Comments
 (0)