Commit cd63747e authored by Jaroslav Tulach's avatar Jaroslav Tulach
Browse files

Check just a few well known clusters

parent fa85b517
......@@ -42,8 +42,28 @@ suite('Extension Test Suite', () => {
let clusters = myExtension.findClusters('non-existent').
// ignore 'extra' cluster in the extension path, since nbjavac is there during development:
filter(s => !s.startsWith(extraCluster));
assert.strictEqual(clusters.length, 6, 'six required clusters found: ' + clusters);
for (let c of clusters) {
let found : string[] = [];
function assertCluster(name : string) {
for (let c of clusters) {
if (c.endsWith('/' + name)) {
found.push(c);
return;
}
}
assert.fail(`Cannot find ${name} among ${clusters}`);
}
assertCluster('extide');
assertCluster('ide');
assertCluster('java');
assertCluster('nbcode');
assertCluster('platform');
assertCluster('webcommon');
assertCluster('harness');
for (let c of found) {
assert.ok(c.startsWith(nbcode.extensionPath), `All extensions are below ${nbcode.extensionPath}, but: ${c}`);
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment